GroupCreation

Group Creation is a feature which allows users to Create Group with Group Name and adding group members.

GroupCreation#

group_creation

The following are the GroupCreation 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 Group Name style and attributes for customizations.#
<style name="Custom" parent="MirrorFly">
<item name="mf_group_style">@style/GroupCreation</item>
</style>
<style name="GroupCreation" parent="Widget.MirrorFly.MyGroup">
<item name="android:background">@color/color_white</item>
<item name="mf_new_group_name_text_appearance">@style/MirrorFlyGroup</item>
</style>

GroupCreation#

List of attributes of Widget.MirrorFly.MyGroup#

AttributeResource typeDescription
android:backgrounddrawable/colorThe user item background.
mf_new_group_name_text_appearancetext appearanceSize, color, font, and style of the group name.

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

NewGroupFragment.Builder(messageId,R.style.Custom)
.setUseHeader(true)
.setHeaderTitle("New Group")
.build()