Configuring Colors, User Actions

Learn about color configuration and user actions in Android

To quickly brand your chat app, create a colors.xml file in your res/values folder, you can change the colors used:

<resources>
   <color name="BrandMessenger_accent">#9200aa</color>
   <color name="BrandMessenger_accentDark">#76008a</color>
   <color name="BrandMessenger_accentLight">#be7cca</color>

   <color name="BrandMessenger_remoteMessageAuthor">@color/Lithium_header</color>
   <color name="BrandMessenger_remoteMessageBackground">#ffffff</color>
   <color name="BrandMessenger_remoteMessageBorder">#d9d9d9</color>
   <color name="BrandMessenger_remoteMessageText">#212121</color>

  <color name="BrandMessenger_userMessageBackground">@color/Lithium_accent</color>
  <color name="BrandMessenger_userMessageBorder">@color/Lithium_accentDark</color>
  <color name="BrandMessenger_userMessageFailedBackground">@color/Lithium_accentFailure</color>
  <color name="BrandMessenger_userMessageText">#ffffff</color>
</resources>

Uploading images, documents, and attaching a location

The Brand Messenger SDK supports uploading items from Gallery, Camera including Documents and attaching Location. If you want to allow these options, simply override the following resource in settings.xml to the value of your choice:

<string-array name="BrandMessenger_settings_showMenuOptions" type="array">
   <item>@string/BrandMessenger_settings_takePhotoMenuKey</item>
   <item>@string/BrandMessenger_settings_chooseMediaMenuKey</item>
   <item>@string/BrandMessenger_settings_uploadFileMenuKey</item>
   <item>@string/BrandMessenger_settings_shareLocationMenuKey</item>
</string-array>

You can remove the ones you don't support.


Did this page help you?