summaryrefslogtreecommitdiffstats
path: root/res/layout/v2_fragment_pager_list.xml
blob: fc3c26eff6ca25851c9e49f80b9835593b0fc130 (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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?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>
            <FrameLayout
                android:id="@+id/title_card"
                android:layout_width="@dimen/theme_preview_width"
                android:layout_height="48dp"
                android:layout_below="@id/shadow_frame"
                android:layout_centerHorizontal="true"
                android:background="@drawable/card_themepreview_bg">
                <RelativeLayout
                    android:id="@+id/title_layout"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent">
                    <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>
                <ProgressBar
                    android:id="@+id/apply_progress"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_gravity="center_vertical|right"
                    android:padding="@dimen/apply_progress_padding"
                    android:indeterminate="false"
                    android:max="100"
                    android:progress="0"
                    android:progressDrawable="@drawable/apply_progress_bar"
                    android:visibility="gone"
                    style="@android:style/Widget.ProgressBar.Horizontal"/>
            </FrameLayout>
        </RelativeLayout>
    </ScrollView>
</LinearLayout>