Add padding above and below dialog lists to match Material spec

There's a little too much padding between lists and buttons, but it's
definitely the lesser of two evils. We can handle it dynamically later
on, but it's tricky since we can't just insert a Space element.

BUG: 18336555
Change-Id: I1a8ff644dd27f7998ce7cf7a4fadba1fd7ed04ff
This commit is contained in:
Alan Viverette
2014-11-19 17:17:56 -08:00
parent 2ee054b4f0
commit 2af21e0bfa
2 changed files with 9 additions and 3 deletions

View File

@@ -22,11 +22,14 @@
-->
<view class="com.android.internal.app.AlertController$RecycleListView"
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+android:id/select_dialog_listview"
android:id="@id/select_dialog_listview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:cacheColorHint="@null"
android:divider="?android:attr/listDividerAlertDialog"
android:divider="?attr/listDividerAlertDialog"
android:scrollbars="vertical"
android:overScrollMode="ifContentScrolls"
android:textAlignment="viewStart" />
android:textAlignment="viewStart"
android:paddingTop="@dimen/dialog_list_padding_vertical_material"
android:paddingBottom="@dimen/dialog_list_padding_vertical_material"
android:clipToPadding="false" />

View File

@@ -93,4 +93,7 @@
<dimen name="dialog_padding_material">24dp</dimen>
<dimen name="dialog_padding_top_material">18dp</dimen>
<!-- Padding above and below selection dialog lists. -->
<dimen name="dialog_list_padding_vertical_material">8dp</dimen>
</resources>