diff options
Diffstat (limited to 'res/layout/call_log_fragment.xml')
-rw-r--r-- | res/layout/call_log_fragment.xml | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/res/layout/call_log_fragment.xml b/res/layout/call_log_fragment.xml index aad7d8e77..6b6726491 100644 --- a/res/layout/call_log_fragment.xml +++ b/res/layout/call_log_fragment.xml @@ -15,19 +15,41 @@ --> <!-- Layout parameters are set programmatically. --> -<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" +<android.support.design.widget.CoordinatorLayout + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:design="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="@color/background_dialer_call_log"> + android:background="@color/background_dialer_call_log" + design:statusBarBackground="@null"> - <android.support.v7.widget.RecyclerView android:id="@+id/recycler_view" + <android.support.design.widget.AppBarLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:outlineProvider="bounds" + android:elevation="1dp"> + + <FrameLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + design:layout_scrollFlags="scroll|enterAlways"> + + <include layout="@layout/call_spinner" /> + + </FrameLayout> + + </android.support.design.widget.AppBarLayout> + + <android.support.v7.widget.RecyclerView + android:id="@+id/recycler_view" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/background_dialer_call_log" android:clipToPadding="false" android:paddingStart="@dimen/call_log_horizontal_margin" android:paddingEnd="@dimen/call_log_horizontal_margin" - android:paddingBottom="@dimen/floating_action_button_list_bottom_padding" /> + android:paddingBottom="@dimen/floating_action_button_list_bottom_padding" + design:layout_behavior="@string/appbar_scrolling_view_behavior" /> <com.android.dialer.widget.EmptyContentView android:id="@+id/empty_list_view" @@ -36,4 +58,4 @@ android:layout_gravity="center" android:visibility="gone" /> -</FrameLayout> +</android.support.design.widget.CoordinatorLayout> |