From 56ae446cfe7fffaf21fcd124679fc29cc475d689 Mon Sep 17 00:00:00 2001 From: Rashiq Date: Sun, 25 Dec 2016 14:12:52 +0100 Subject: [PATCH] Clean up layout --- res/layout/content_header.xml | 2 +- res/layout/section_list.xml | 41 +++++++++++++++++------------------ 2 files changed, 21 insertions(+), 22 deletions(-) diff --git a/res/layout/content_header.xml b/res/layout/content_header.xml index 5ae99cbfc..20c2eddf9 100644 --- a/res/layout/content_header.xml +++ b/res/layout/content_header.xml @@ -13,5 +13,5 @@ android:fontFamily="sans-serif-light" android:gravity="center_vertical" android:maxLines="1" - android:minHeight="?android:attr/listPreferredItemHeightSmall" + android:minHeight="?android:attr/listPreferredItemHeight" android:textAppearance="?android:attr/textAppearanceListItemSmall"/> \ No newline at end of file diff --git a/res/layout/section_list.xml b/res/layout/section_list.xml index 20465cefa..fb4a37924 100644 --- a/res/layout/section_list.xml +++ b/res/layout/section_list.xml @@ -1,27 +1,26 @@ + android:layout_width="match_parent" + android:layout_height="56dp" + android:background="?attr/selectedBackground" + android:clickable="false" + android:focusable="false" + android:gravity="center_vertical" + android:orientation="horizontal"> + android:id="@+id/titleText" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:layout_marginLeft="16dp" + android:layout_marginRight="16dp" + android:layout_toLeftOf="@+id/exitButton" + android:ellipsize="end" + android:fontFamily="sans-serif-light" + android:gravity="center_vertical" + android:maxLines="1" + android:minHeight="?android:attr/listPreferredItemHeightSmall" + android:textAppearance="?android:attr/textAppearanceListItemSmall"/> \ No newline at end of file