aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/res/layout-land
diff options
context:
space:
mode:
authorKyle Horimoto <khorimoto@google.com>2015-09-04 10:34:12 -0700
committerKyle Horimoto <khorimoto@gmail.com>2015-09-04 13:36:32 -0700
commit11ff5ee21103b33dddbc808f468fe32f916937d3 (patch)
tree08e426223730a25e6c5722d1ed3cd768b9cb59f5 /app/src/main/res/layout-land
parent44c7bcfa9f7ae69fa481b100bcfba5e1387eee9c (diff)
downloadconnectbot-11ff5ee21103b33dddbc808f468fe32f916937d3.tar.gz
connectbot-11ff5ee21103b33dddbc808f468fe32f916937d3.tar.bz2
connectbot-11ff5ee21103b33dddbc808f468fe32f916937d3.zip
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.
Diffstat (limited to 'app/src/main/res/layout-land')
-rw-r--r--app/src/main/res/layout-land/item_host.xml29
1 files changed, 18 insertions, 11 deletions
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"
>
<ImageView
android:id="@android:id/icon"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
+ android:layout_width="40dp"
+ android:layout_height="40dp"
android:layout_alignParentRight="true"
+ android:layout_centerVertical="true"
+ android:layout_marginRight="16dp"
android:contentDescription="@string/image_description_connected"
- android:paddingTop="5dip"
android:src="@drawable/connected"
/>
<LinearLayout
- android:layout_width="fill_parent"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:orientation="horizontal"
+ 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"
>
<TextView
@@ -48,18 +55,18 @@
android:layout_height="wrap_content"
android:ellipsize="end"
android:singleLine="true"
- android:textAppearance="?android:attr/textAppearanceLarge"
+ android:paddingTop="20dp"
+ android:textAppearance="@style/ListItemFirstLineText"
/>
<TextView
android:id="@android:id/text2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:paddingLeft="10dip"
- android:textAppearance="?android:attr/textAppearanceSmall"
+ android:paddingBottom="20dp"
+ android:textAppearance="@style/ListItemSecondLineText"
/>
-
</LinearLayout>
-</RelativeLayout> \ No newline at end of file
+</RelativeLayout>