A theme is style that's applied to your entire app, activity, or view hierarchy rather than an individual view. It's composed of different styles used in modules and components. By default, Sendbird UIKit for Android provides two themes:
Dark. But you can customize these themes to create your own brand identity by changing the value of resources.
Setup the default theme
UIKit for Android's
Dark theme can be applied using the
This is the default theme for UIKit if another theme hasn’t been specified.
Dark theme can be applied as below:
A theme in UIKit is composed of various styles used in modules and components. To change them, you must inherit the style of the module you wish to customize and create a custom style first. Then, you can apply the new style to the theme. You can also set and customize individual component themes for when you want to use components outside of the set module. To learn more about style, go to the Style resource page.
Note : For dark theme, use
AppTheme.Dark.Sendbirdin the code. You can see all the different styles that are applied to the dark theme in the
For an in-depth practical demonstration, see our sample code.