summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/nav_list.xml
blob: 93e9f737eb90d39bf68213f772cfbbd2baaa2049 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/nav_layout"
    android:layout_width="@dimen/drawer_width"
    android:layout_height="match_parent"
    android:layout_gravity="start"
    android:background="?attr/nav_drawer_background"
    android:orientation="vertical">

    <ListView
        android:id="@+id/nav_list"
        android:layout_width="@dimen/drawer_width"
        android:layout_height="0dp"
        android:layout_weight="1"
        android:choiceMode="singleChoice"
        android:clipToPadding="false"
        android:divider="@android:color/transparent"
        android:dividerHeight="0dp"
        android:paddingBottom="@dimen/list_vertical_padding"
        android:paddingTop="@dimen/list_vertical_padding"
        android:scrollbarStyle="outsideOverlay" />

    <View
        android:layout_width="@dimen/drawer_width"
        android:layout_height="1dp"
        android:layout_centerVertical="true"
        android:background="@color/gray" />

    <LinearLayout
        android:id="@+id/nav_settings"
        android:layout_width="@dimen/drawer_width"
        android:layout_height="@dimen/listitem_iconwithtext_height"
        android:background="?attr/selectableItemBackground"
        android:contentDescription="@string/settings_label"
        android:orientation="horizontal">

        <ImageView
            android:id="@+id/imgvCover"
            android:layout_width="@dimen/thumbnail_length_navlist"
            android:layout_height="@dimen/thumbnail_length_navlist"
            android:layout_alignParentLeft="true"
            android:layout_centerVertical="true"
            android:layout_marginBottom="8dp"
            android:layout_marginLeft="@dimen/listitem_icon_leftpadding"
            android:layout_marginTop="8dp"
            android:adjustViewBounds="true"
            android:contentDescription="@string/cover_label"
            android:cropToPadding="true"
            android:padding="8dp"
            android:scaleType="centerCrop"
            android:src="?attr/ic_settings" />

        <TextView
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_gravity="center_vertical"
            android:layout_margin="16dp"
            android:layout_weight="1"
            android:gravity="center_vertical"
            android:text="@string/settings_label"
            android:textColor="?android:attr/textColorPrimary"
            android:textSize="@dimen/text_size_navdrawer" />

    </LinearLayout>

</LinearLayout>