Profile

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

MyProfile#

my_profile

StyleSet#

StyleSet is the list of styles provided by MirrorFly UIKit. Customizing the style of Profile 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.

The following are the Profile AppBar style and attributes for customizations.#
<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>
<!-- Mirrorfly UIKit Profile. -->
<item name="mf_profile_style">@style/Widget.MirrorFly.MyProfile</item>
</style>
<style name="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>
</resources>

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.

StringSet#

Listed below are all the strings used in UIKit for Android. Strings can be changed by overwriting the res/values/strings.xml files with the same name.

<!-- Profile -->
<string name="mf_text_header_profile">Profile</string>
<string name="mf_profile_save_button">Save</string>

IconSet#

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

Icon nameImageDescription
icon_cameraAdd 2Icon of Camera.
icon_galleryAdd 2Icon of Gallery.
ic_delete_mediaic_deleteIcon of Remove Photo
icon_arrow_leftBackGoes back to the previous page.