Call logs

Call Logs is a feature which allows users to know the call history for the audio and video of incoming, outgoing and group.

Call log list#

image_preview

Single or Group Call#

image_preview

The following are the call logs 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 call log Recyclerview style and attributes for customizations.#
<style name="Custom" parent="MirrorFly">
<item name="mf_recycler_view_style">@style/CustomRecyclerView</item>
</style>
<style name="CustomRecyclerView" parent="Widget.MirrorFly.RecyclerView">
<item name="android:background">@color/background_50</item>
<item name="mf_pager_recycler_view_use_divide_line">true</item>
<item name="mf_pager_recycler_view_divide_line_color">@color/onlight_04</item>
<item name="mf_pager_recycler_view_divide_line_height">@dimen/mf_size_1</item>
<item name="mf_pager_recycler_view_divide_margin_left">0dp</item>
<item name="mf_pager_recycler_view_divide_margin_right">0dp</item>
</style>

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

val builder: CallLogFragment.Builder = CallLogFragment.Builder()
.setHeaderTitle("Calls")
.setUseHeader(true)
as CallLogFragment.Builder
builder.setUseHeaderLeftButton(false)
builder.setUseHeaderRightButton(false)
builder.build()