Skip to main content
SDK Version

Customizations

By default, the Actito SDK automatically manages most of the complexity around in-app messages.

However, you may want to better align the in-app messages presentation with your app’s branding.

Theming In-app Messages

The In-App Messaging module automatically presents messages using a dedicated activity provided by the SDK — InAppMessagingActivity. By default, this activity uses the SDK's theme.

You can customize the visual appearance of Actito in-app messages by applying your own theme. This allows you to ensure consistent branding and appearance when presenting passes.

Themes are declared in a style resource file within your app’s res/values folder. You can then assign your custom theme to Actito’s InAppMessagingActivity in your AndroidManifest.xml:

<activity
android:name="com.actito.iam.ui.InAppMessagingActivity"
android:theme="@style/Theme.App.Custom.Iam" />

If you want a clean look of presenting your in-app message over your app's content, we recommend going for a translucent style:

<style name="Theme.App.Actito.Iam">
<!-- Disable the ActionBar -->
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>

<!-- Apply a translucent background effect -->
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowTranslucentNavigation">true</item>
<item name="android:windowBackground">@color/actito_translucent</item>
</style>

You can learn more about theming in the official Android developer guide.