diff options
author | Chris Warrington <cmw@google.com> | 2016-10-18 12:29:21 +0100 |
---|---|---|
committer | Chris Warrington <cmw@google.com> | 2016-10-18 12:34:18 +0100 |
commit | e3780081075c01aa1dff6d1f373cb43192b33e68 (patch) | |
tree | fb734615933a39f3d009210dc0d1457160479b35 /WordPress/src/main/res/layout/stats_list_cell.xml | |
parent | 7e05eb7e57827eddc885570bc00aed8a50320dbf (diff) | |
parent | 025b8b226c8d8edba2b309ca878572f40512eca7 (diff) | |
download | gradle-perf-android-medium-e3780081075c01aa1dff6d1f373cb43192b33e68.tar.gz |
Merge remote-tracking branch 'origin/upstream-master' into masterHEADstudio-3.4.0studio-3.2.1studio-3.1.2studio-3.0studio-2.3gradle_3.4.0gradle_3.1.2gradle_3.0.0gradle_2.3.0studio-master-devmirror-goog-studio-master-devmastermain
Change-Id: I63f5e16d09297c48432192761b840310935eb903
Diffstat (limited to 'WordPress/src/main/res/layout/stats_list_cell.xml')
-rw-r--r-- | WordPress/src/main/res/layout/stats_list_cell.xml | 104 |
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> |