aboutsummaryrefslogtreecommitdiff
path: root/WordPress/src/main/res/layout/page_item.xml
blob: 384387ec0c566bfb98077015da1d3ecaa5ae2633 (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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/page_item_background"
    android:orientation="vertical">

    <View
        android:id="@+id/divider_top"
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:background="@color/grey_lighten_20" />

    <LinearLayout
        android:id="@+id/header_date"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/grey_light"
        android:orientation="vertical">

        <org.wordpress.android.widgets.WPTextView
            android:id="@+id/text_date"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:drawableLeft="@drawable/noticon_clock"
            android:drawablePadding="@dimen/margin_small"
            android:padding="@dimen/margin_medium"
            android:textColor="@color/grey_darken_10"
            android:textSize="@dimen/text_sz_medium"
            tools:text="text_date" />

        <View
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:background="@color/grey_lighten_20" />
    </LinearLayout>

    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="?android:selectableItemBackground"
            android:paddingBottom="@dimen/margin_large"
            android:paddingLeft="@dimen/margin_extra_large"
            android:paddingRight="@dimen/margin_extra_large"
            android:paddingTop="@dimen/margin_large">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_centerVertical="true"
                android:layout_toLeftOf="@+id/btn_more"
                android:orientation="vertical">

                <org.wordpress.android.widgets.WPTextView
                    android:id="@+id/text_title"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_below="@+id/text_date"
                    android:ellipsize="end"
                    android:maxLines="3"
                    android:textColor="@color/grey_dark"
                    android:textSize="@dimen/text_sz_large"
                    app:wpFontFamily="merriweather"
                    tools:text="text_title" />

                <org.wordpress.android.widgets.WPTextView
                    android:id="@+id/text_status"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:gravity="center_vertical"
                    android:textColor="@color/grey_darken_10"
                    android:textSize="@dimen/text_sz_small"
                    android:visibility="gone"
                    tools:drawableLeft="@drawable/noticon_scheduled"
                    tools:text="text_status"
                    tools:visibility="visible" />

            </LinearLayout>

            <ImageView
                android:id="@+id/btn_more"
                android:layout_width="32dp"
                android:layout_height="32dp"
                android:layout_alignParentRight="true"
                android:layout_centerVertical="true"
                android:layout_marginLeft="@dimen/margin_medium"
                android:background="?android:selectableItemBackground"
                android:padding="@dimen/margin_medium"
                android:contentDescription="@string/more"
                app:srcCompat="@drawable/ic_action_more" />
        </RelativeLayout>

        <RelativeLayout
            android:id="@+id/disabled_overlay"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="@color/translucent_white"
            android:clickable="true"
            android:focusable="true">

            <ProgressBar
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerHorizontal="true"
                android:layout_centerVertical="true"
                android:indeterminate="true"/>
        </RelativeLayout>
    </FrameLayout>



    <View
        android:id="@+id/divider_bottom"
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:background="@color/grey_lighten_20" />

</LinearLayout>