Profile

Profile is a feature which allows users to update their User profile, Profile image and Remove image.

MyProfile#

my_profile

The following are the Profile AppBar style and attributes for customizations.#
<style name="Custom" parent="MirrorFly">
<item name="mf_appbar_style">@style/CustomAppBar</item>
</style>
<style name="CustomAppBar" parent="Widget.MirrorFly.AppBar">
<item name="android:background">@color/primary_300</item>
<item name="mf_appbar_title_appearance">@style/MirrorFlyH2OnDark01</item>
<item name="mf_appbar_description_appearance">@style/MirrorFlyCaption2OnDark02</item>
<item name="mf_appbar_divider_color">@color/primary_500</item>
<item name="mf_appbar_left_button_text_appearance">@style/MirrorFlyButtonOnDark01</item>
<item name="mf_appbar_left_button_text_color">@color/selector_on_primary</item>
<item name="mf_appbar_left_button_tint">@color/ondark_01</item>
<item name="mf_appbar_left_button_background">@drawable/mf_button_uncontained_background_custom</item>
<item name="mf_appbar_right_button_text_appearance">@style/MirrorFlyButtonOnDark01</item>
<item name="mf_appbar_right_button_text_color">@color/selector_on_primary</item>
<item name="mf_appbar_right_button_tint">@color/ondark_01</item>
<item name="mf_appbar_right_button_background">@drawable/mf_button_uncontained_background_custom</item>
</style>
The following are the Profile style and attributes for customizations.#
<style name="Custom" parent="MirrorFly">
<item name="mf_profile_style">@style/CustomProfile</item>
</style>
<style name="CustomProfile" parent="Widget.MirrorFly.MyProfile">
<item name="android:background">@drawable/selector_rectangle_light</item>
<item name="mf_profile_username_text_appearance">@style/MirrorFlyBody3OnLight01</item>
<item name="mf_profile_email_text_appearance">@style/MirrorFlyBody3OnLight01</item>
<item name="mf_profile_mobile_text_appearance">@style/MirrorFlyBody3OnLight01</item>
</style>

Profile#

List of attributes of Widget.MirrorFly.MyProfile#

AttributeResource typeDescription
android:backgrounddrawable/colorThe user item background.
mf_profile_username_text_appearancetext appearanceSize, color, font, and style of the delivered receipt.
mf_profile_email_text_appearancetext appearanceSize, color, font, and style of the read receipt.
mf_profile_mobile_text_appearancetext appearanceSize, color, font, and style of the read receipt.

Note : To apply the declared custom styles, pass the R.style.Custom to the MyProfileFragment.Builder as follows:

MyProfileFragment.Builder(messageId,R.style.Custom)
.setUseHeader(true)
.setHeaderTitle("Custom Profile")
.setUseHeaderLeftButton(true)
.build()