aboutsummaryrefslogtreecommitdiff
path: root/WordPress/src/main/res/layout/stats_list_cell.xml
blob: 00e8d206e60bb9e00dc94aecd0d2b8456ffcfa5c (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
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
    android:orientation="vertical">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:id="@+id/layout_content"
        android:background="?android:selectableItemBackground"
        android:paddingTop="@dimen/margin_medium"
        android:paddingBottom="@dimen/margin_medium"
        android:paddingRight="@dimen/margin_large"
        android:paddingLeft="@dimen/margin_large"
        android:gravity="center_vertical"
        android:layout_gravity="center_vertical">

        <ImageView
            android:id="@+id/stats_list_cell_link"
            android:layout_width="14dp"
            android:layout_height="14dp"
            android:layout_marginRight="10dp"
            android:layout_marginEnd="10dp"
            android:visibility="gone"
            app:srcCompat="@drawable/stats_link" />

        <ImageView
            android:id="@+id/stats_list_cell_chevron"
            android:layout_width="12dp"
            android:layout_height="12dp"
            android:layout_marginRight="@dimen/margin_large"
            android:layout_marginEnd="@dimen/margin_large"
            android:visibility="gone"
            app:srcCompat="@drawable/stats_chevron_right" />

        <org.wordpress.android.widgets.WPNetworkImageView
            android:id="@+id/stats_list_cell_image"
            android:layout_width="@dimen/avatar_sz_small"
            android:layout_height="@dimen/avatar_sz_small"
            android:layout_marginRight="@dimen/margin_large"
            android:layout_marginEnd="@dimen/margin_large"
            android:visibility="gone" />

        <org.wordpress.android.widgets.WPTextView
            android:id="@+id/stats_list_cell_entry"
            android:layout_weight="1"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:minHeight="@dimen/avatar_sz_small"
            android:layout_marginRight="@dimen/margin_large"
            android:layout_marginEnd="@dimen/margin_large"
            android:maxLines="3"
            android:gravity="center_vertical"
            android:autoLink="none"
            android:textColor="@color/stats_text_color"
            android:textColorLink="@color/stats_link_text_color"
            android:textColorHighlight="@color/transparent"
            android:textSize="@dimen/text_sz_medium" />

        <ImageView
            android:id="@+id/image_more"
            android:visibility="gone"
            android:layout_width="@dimen/avatar_sz_small"
            android:layout_height="@dimen/avatar_sz_small"
            android:layout_centerVertical="true"
            android:layout_marginLeft="@dimen/margin_small"
            android:layout_marginStart="@dimen/margin_small"
            android:layout_marginRight="@dimen/margin_large"
            android:layout_marginEnd="@dimen/margin_large"
            android:background="?android:selectableItemBackground"
            android:paddingLeft="@dimen/margin_small"
            android:paddingRight="@dimen/margin_small"
            android:contentDescription="@string/more"
            app:srcCompat="@drawable/ic_action_more" />

        <LinearLayout
            android:id="@+id/stats_list_cell_total_container"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:minWidth="36dp"
            android:gravity="end">
            <org.wordpress.android.widgets.WPTextView
                android:id="@+id/stats_list_cell_total"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textColor="@color/stats_text_color"
                android:textSize="@dimen/text_sz_medium" />
        </LinearLayout>
    </LinearLayout>


    <!-- expanded children will be inserted here -->
    <LinearLayout
        android:id="@+id/layout_child_container"
        android:orientation="vertical"
        android:visibility="gone"
        android:background="@color/grey_light"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />

</LinearLayout>