Merge branch 'category-filter-height' into 'master'

Set category filter height to 48dp

This improves usability of the category spinner. Divider is now behind
it. This makes the layout visually more compact while keeping actual
touch target 48dp. See
http://www.google.com/design/spec/layout/metrics-keylines.html#metrics-keylines-touch-target-size

Before and after:

![before](/uploads/b52b3c84675c8b3ef5896e90967dafd4/before.png)
![after](/uploads/a07efee75bdfe5356378fa9960da8730/after.png)


See merge request !161
This commit is contained in:
Daniel Martí 2015-11-05 10:16:38 +00:00
commit 6483106a46

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout <RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
@ -8,21 +8,22 @@
<Spinner <Spinner
android:id="@+id/category_spinner" android:id="@+id/category_spinner"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="48dp"
android:layout_marginLeft="8dp" android:layout_marginLeft="8dp"
android:layout_marginRight="8dp" android:layout_marginRight="8dp"
android:paddingTop="8dp" android:paddingBottom="1dp" />
android:paddingBottom="8dp" />
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="2dp" android:layout_height="2dp"
android:layout_alignBottom="@id/category_spinner"
android:background="@color/fdroid_green" /> android:background="@color/fdroid_green" />
<ListView <ListView
android:id="@android:id/list" android:id="@android:id/list"
android:fastScrollEnabled="true" android:fastScrollEnabled="true"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" /> android:layout_height="match_parent"
android:layout_below="@id/category_spinner" />
</LinearLayout> </RelativeLayout>