From 9bd236d66c0bb1ff826895742f5f18440bf5a350 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Wed, 12 Feb 2014 19:30:26 +0100 Subject: [PATCH] Some much needed fixes to appdetails headers * If the info is taller than the icon, grow larger to fit it in * Center icon vertically * Move padding out of the header * Revert some font sizes to how they were some time ago, a bit smaller --- res/layout/appdetails.xml | 41 +++++++++++++++++++-------------------- res/layout/appinfo.xml | 7 +++++-- 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/res/layout/appdetails.xml b/res/layout/appdetails.xml index 69ff4303f..19dcdfbd4 100644 --- a/res/layout/appdetails.xml +++ b/res/layout/appdetails.xml @@ -10,19 +10,18 @@ android:id="@+id/header" android:layout_width="fill_parent" android:layout_height="wrap_content" - android:paddingBottom="4dp" android:orientation="horizontal" > @@ -34,21 +33,8 @@ android:layout_alignParentRight="true" android:singleLine="true" android:ellipsize="end" - android:paddingTop="3sp" - android:paddingBottom="3sp" - android:layout_marginLeft="8sp" - android:textSize="13sp" /> - - + android:layout_marginLeft="6sp" + android:textSize="12sp" /> + + + android:layout_toLeftOf="@id/categories" + android:layout_below="@id/title" /> + + diff --git a/res/layout/appinfo.xml b/res/layout/appinfo.xml index 546d06bed..b567185c5 100644 --- a/res/layout/appinfo.xml +++ b/res/layout/appinfo.xml @@ -2,7 +2,8 @@ @@ -16,7 +17,7 @@ android:id="@+id/appid" android:layout_width="fill_parent" android:layout_height="wrap_content" - android:textSize="13sp" /> + android:textSize="12sp" />