summaryrefslogtreecommitdiffstats
path: root/core/res
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2014-11-19 17:17:56 -0800
committerAlan Viverette <alanv@google.com>2014-11-19 17:17:56 -0800
commit2af21e0bfabf04578623ff31e4fa77e955588968 (patch)
treee462e9bae2f1a16a923bff502e87ec7a01911cb9 /core/res
parent2ee054b4f099ce67dffc29329612170305053783 (diff)
downloadframeworks_base-2af21e0bfabf04578623ff31e4fa77e955588968.zip
frameworks_base-2af21e0bfabf04578623ff31e4fa77e955588968.tar.gz
frameworks_base-2af21e0bfabf04578623ff31e4fa77e955588968.tar.bz2
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
Diffstat (limited to 'core/res')
-rw-r--r--core/res/res/layout/select_dialog_material.xml9
-rw-r--r--core/res/res/values/dimens_material.xml3
2 files changed, 9 insertions, 3 deletions
diff --git a/core/res/res/layout/select_dialog_material.xml b/core/res/res/layout/select_dialog_material.xml
index ee04039..19ad407 100644
--- a/core/res/res/layout/select_dialog_material.xml
+++ b/core/res/res/layout/select_dialog_material.xml
@@ -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" />
diff --git a/core/res/res/values/dimens_material.xml b/core/res/res/values/dimens_material.xml
index 4a2119b..7d79ddb 100644
--- a/core/res/res/values/dimens_material.xml
+++ b/core/res/res/values/dimens_material.xml
@@ -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>