Forward

Forward message is a feature that allows users to forward the image and text message. Forward message appears in the ForwardMessageFragment class.

In MirrorFly UIKit for Android, there are currently two type of messages that users can forward : text and image. These text message and image file can be shared with other members in the single chat from the sender’s mobile device.

Forward Message Screen#

image_preview

Forward Message Flow#

image_preview

StyleSet#

StyleSet is the list of styles provided by MirrorFly UIKit. Customizing the style of Message Forward list items is straightforward: Simply inherit the MirrorFly UIKit-defined styles, then override the res/values/styles.xml or res/values/themes.xml file from the list below.

<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.MFUIKITTest" parent="Theme.MaterialComponents.DayNight.NoActionBar">
<item name="colorPrimary">@color/purple_500</item>
<item name="colorPrimaryVariant">@color/purple_700</item>
<item name="colorAccent">@color/primary_300</item>
<item name="colorOnPrimary">@color/white</item>
<item name="colorSecondary">@color/teal_200</item>
<item name="colorSecondaryVariant">@color/teal_700</item>
<item name="colorOnSecondary">@color/black</item>
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
<!-- UIKit Contact style theme. -->
<item name="mf_contact_preview_style">@style/Widget.MirrorFly.UserPreview</item>
<item name="mf_appbar_style">@style/Widget.MirrorFly.AppBar</item>
<item name="mf_recycler_view_style">@style/Widget.MirrorFly.RecyclerView</item>
</style>
<style name="Widget.MirrorFly.UserPreview">
<item name="android:background">@color/background_200</item>
<item name="mf_contact_preview_nickname_appearance">@style/MirrorFlyH2OnLight01</item>
</style>
</resources>

List of attributes of Widget.MirrorFly.UserPreview#

AttributeResource typeDescription
android:backgrounddrawable/colorThe user item background.
mf_user_preview_nickname_appearancetext appearanceSize, color, font, and style of the user nickname.

StringSet#

<string name="mf_text_header_contact">Contacts</string>
<string name="mf_text_user_list_empty">No contacts</string>
<string name="mf_text_error_get_user_list">Couldn\&#39;t retrieve contact list.</string>

IconSet#

Listed below are all the icons used in UIKit Contact for Android. Icons can be changed by overwriting the res/drawable files with the same name.

Icon nameImageDescription
icon_arrow_leftBackGoes back to the previous page.