summaryrefslogtreecommitdiffstats
path: root/res/layout/v2_fragment_pager_list.xml
blob: 70c1b3c74bee654a2c7e2ef158cfd0d381cfa877 (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
68
69
70
71
72
73
74
75
76
77
78
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:orientation="vertical"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:paddingStart="@dimen/collapsed_theme_page_padding"
              android:paddingEnd="@dimen/collapsed_theme_page_padding">
    <ScrollView android:id="@android:id/list"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:paddingTop="@dimen/collapsed_theme_page_padding_top"
                android:gravity="center"
                android:layout_gravity="center_vertical"
                android:divider="@null"
                android:scrollbars="none"
                android:fillViewport="true"
                android:drawSelectorOnTop="false">
        <RelativeLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content">
            <FrameLayout
                android:id="@+id/shadow_frame"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@drawable/bg_themepreview_shadow">
                <ImageView
                    android:id="@+id/wallpaper"
                    android:layout_width="@dimen/theme_preview_width"
                    android:layout_height="@dimen/theme_preview_height"
                    android:layout_gravity="center_horizontal"
                    android:scaleType="centerCrop"
                    />
                <RelativeLayout
                    android:id="@+id/preview_container"
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/theme_preview_height">
                    <include layout="@layout/v2_status_bar_preview_item"/>
                    <include layout="@layout/v2item_font"/>
                    <include layout="@layout/v2item_icon"/>
                    <include layout="@layout/v2_nav_bar_preview_item"/>
                </RelativeLayout>
            </FrameLayout>
            <RelativeLayout
                android:id="@+id/title_card"
                android:layout_below="@id/shadow_frame"
                android:layout_width="@dimen/theme_preview_width"
                android:layout_height="48dp"
                android:layout_centerHorizontal="true"
                android:background="@drawable/card_themepreview_bg">
                <TextView
                    android:id="@+id/title"
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:layout_alignParentLeft="true"
                    android:layout_marginStart="16dp"
                    android:gravity="center"
                    android:ellipsize="end"
                    android:textColor="#78000000"/>

                <ImageView
                    android:id="@+id/apply"
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:layout_toLeftOf="@+id/overflow"
                    android:layout_marginRight="16dp"
                    android:src="@drawable/ic_theme_apply2"/>

                <ImageView
                    android:id="@+id/overflow"
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:layout_alignParentRight="true"
                    android:layout_marginRight="8dp"
                    android:src="@drawable/ic_overflow_dark"/>
            </RelativeLayout>
        </RelativeLayout>
    </ScrollView>
</LinearLayout>