Themes
A theme is style that’s applied to your enimport Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';tire app, activity or view hierarchy rather than an individual view. By default, Mirrofly UIKit for Android provides two themes: Light and Dark. Customized themes that fit your brand identity can also be created by changing the style and color set.
#
Setup the default themeUIKit for Android's Light or Dark theme can be applied using the MirrorFlyUIKit.defaultThemeMode method.
#
Light themeThis is the default theme for UIKit if another theme hasn’t been specified.
#
Dark themeThe Dark theme can be applied as below:
#
StyleSetStyleSet is the list of styles provided by UIKit. Customizing the style of chat list items is straightforward: Simply inherit the UIKit-defined styles, then override the res/values/styles.xml file from the list below. For example, the ChatPreview theme can be changed by overriding the Widget.MirrorFly.ChatPreview.
Note : To apply our Dark theme, create a res/values/styles_dark.xml file and then add .Dark to the UIKit-defined style names.
#
Chat Function DescriptionThe following table lists the style components of each Activity or Fragment used.
Activity or Fragment | Style components |
---|---|
FlyRecentChat | Widget.MirrorFly.ChatPreview, Widget.MirrorFly.RecyclerView, Widget.MirrorFly.SelectContactTypeView |
FlyChat | Widget.MirrorFly.RecyclerView.Message, Widget.MirrorFly.Message.User, Widget.MirrorFly.Message.Timeline, Widget.MirrorFly.MessageInput |
Contact | Widget.MirrorFly.UserPreview, Widget.MirrorFly.RecyclerView |
CommonComponents | Widget.MirrorFly.AppBar, Widget.MirrorFly.RecyclerView, Widget.MirrorFly.DialogView, Widget.MirrorFly.StatusFrame |
#
ColorSetThe ColorSet is the set of colors provided by UIKit for Android and is fully customizable.