aboutsummaryrefslogtreecommitdiff
path: root/WordPress/src/main/res/layout/stats_list_cell.xml
diff options
context:
space:
mode:
Diffstat (limited to 'WordPress/src/main/res/layout/stats_list_cell.xml')
-rw-r--r--WordPress/src/main/res/layout/stats_list_cell.xml104
1 files changed, 104 insertions, 0 deletions
diff --git a/WordPress/src/main/res/layout/stats_list_cell.xml b/WordPress/src/main/res/layout/stats_list_cell.xml
new file mode 100644
index 000000000..00e8d206e
--- /dev/null
+++ b/WordPress/src/main/res/layout/stats_list_cell.xml
@@ -0,0 +1,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>