From 11ff5ee21103b33dddbc808f468fe32f916937d3 Mon Sep 17 00:00:00 2001 From: Kyle Horimoto Date: Fri, 4 Sep 2015 10:34:12 -0700 Subject: Style the host list items with material design. This change updates the items to be in line with the guideline here: https://www.google.com/design/spec/components/lists.html#lists-specs. --- app/src/main/res/layout-land/item_host.xml | 29 ++++++++++------- app/src/main/res/layout-port/item_host.xml | 50 +++++++++++++++++++----------- app/src/main/res/values/styles.xml | 10 +++++- 3 files changed, 59 insertions(+), 30 deletions(-) (limited to 'app') diff --git a/app/src/main/res/layout-land/item_host.xml b/app/src/main/res/layout-land/item_host.xml index cbccd91..a6e60d3 100644 --- a/app/src/main/res/layout-land/item_host.xml +++ b/app/src/main/res/layout-land/item_host.xml @@ -23,23 +23,30 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" - android:padding="10dip" + android:minHeight="72dp" > - - \ No newline at end of file + diff --git a/app/src/main/res/layout-port/item_host.xml b/app/src/main/res/layout-port/item_host.xml index 7ee7f0a..c318d38 100644 --- a/app/src/main/res/layout-port/item_host.xml +++ b/app/src/main/res/layout-port/item_host.xml @@ -22,36 +22,50 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" - android:padding="10dip" + android:minHeight="72dp" > - + android:layout_alignParentLeft="true" + android:layout_alignWithParentIfMissing="true" + android:layout_centerVertical="true" + android:layout_marginLeft="16dp" + android:layout_marginRight="16dp" + android:orientation="vertical" + android:layout_toLeftOf="@android:id/icon" + > - + + + + \ No newline at end of file diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 031d358..593af85 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -27,9 +27,17 @@ 10sp - + + + -- cgit v1.2.3