aboutsummaryrefslogtreecommitdiff
path: root/core-ui/src/main/res-public/layout/kau_recycler_detached_background.xml
blob: 7295d6687a52bab60c2a0ef9986c8391978aca57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <!-- we use a parallel view for the background rather than just setting a background on the
         recycler view for a nicer return transition. i.e. we want the background to fade and the
         list to slide out separately -->
    <View
        android:id="@+id/kau_recycler_detached_background"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="?android:colorBackground" />

    <!--defaults to a LinearLayoutManager-->

    <android.support.v7.widget.RecyclerView
        android:id="@+id/kau_recycler_detached"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:clipToPadding="false"
        android:paddingBottom="@dimen/kau_spacing_normal"
        android:scrollbars="vertical"
        app:layoutManager="android.support.v7.widget.LinearLayoutManager" />

</FrameLayout>