From bc5cf590c78cdad3008b8c4db91e6edd831d0f4e Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 29 Jul 2014 17:49:02 -0400 Subject: [PATCH] fix Compact Layout post appcompat This restores the Compact Layout being smaller than the normal layout, and properly centers the icon in both. This stuff could use some refactoring to work better with all the appcompat styles. fixes #61 https://gitlab.com/fdroid/fdroidclient/issues/61 --- res/layout/applistitem.xml | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/res/layout/applistitem.xml b/res/layout/applistitem.xml index d37feaa7d..8297c1d82 100644 --- a/res/layout/applistitem.xml +++ b/res/layout/applistitem.xml @@ -1,10 +1,10 @@ + android:padding="10dp" + android:baselineAligned="false" > @@ -13,20 +13,17 @@ android:contentDescription="@string/app_icon" android:layout_width="48dip" android:layout_height="48dip" - android:layout_marginLeft="?attr/listPreferredItemPaddingLeft" - android:layout_marginStart="?android:attr/listPreferredItemPaddingStart" - android:layout_marginTop="6dip" - android:scaleType="fitCenter" - /> + android:layout_gravity="center_vertical" + android:scaleType="fitCenter" /> @@ -35,8 +32,7 @@ android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false" - android:layout_marginBottom="3dp" - > + android:layout_marginBottom="3dp" > + android:textAlignment="viewStart" />