Hotline - Android Theming and Customization

Modified on: Tue, 15 Nov, 2016 at 6:38 PM

1. Hotline - Use Existing Themes

Hotline SDK depends on appcompat-v7 for providing backward compatibility, hence all the Hotline Themes are inherited from Theme.AppCompat.* themes. To switch the theme applied to Hotline SDK components, change the parent of Theme.Hotline.SelectedTheme to one of the variants of Theme.Hotline.* in yor app's styles.xml

If you are migrating from older versions of appcomapt-v7 or just getting started, the standard theme attributes needs to be used without the "android:" prefix in the styles. For more information refer : Material Design Reference

Eg: To customize colorPrimary, include the following. Note the missing android: namespace prefix

<item name="colorPrimary">@color/my_awesome_color</item>

Incorrect/Old Implementation :

<item name="android:colorPrimary">@color/my_awesome_color</item>

Following is a list of Hotline SDK specificcustomisations.

2.1 Text Appearance

Hotline supports changing text appearance for several elements in the SDK. Some elements allow full view level customizations including text appearance, those aren't listed here. Please check view customization section for the same. The following are the list of theme attributes that can be overridden and set to some custom text appearance. You can refer to the default text appearance implementation here : Default Styles