summaryrefslogtreecommitdiffstats
path: root/core/res
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2014-09-10 01:27:56 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-09-10 01:27:57 +0000
commitcd7955f66c3b1c47b477ae197ec15c586cec784e (patch)
tree504f2fe89c4e1237dfb8929f8822ba8cac8258c7 /core/res
parent0fd9d8a2c8494be0a6e2c327beca385be00a7a86 (diff)
parente809b11bc10941e829f96e703c6bb3ddb7948a41 (diff)
downloadframeworks_base-cd7955f66c3b1c47b477ae197ec15c586cec784e.zip
frameworks_base-cd7955f66c3b1c47b477ae197ec15c586cec784e.tar.gz
frameworks_base-cd7955f66c3b1c47b477ae197ec15c586cec784e.tar.bz2
Merge "Improve dialog padding when title or body text are missing" into lmp-dev
Diffstat (limited to 'core/res')
-rw-r--r--core/res/res/layout/alert_dialog_material.xml8
-rw-r--r--core/res/res/layout/alert_dialog_progress_material.xml4
-rw-r--r--core/res/res/layout/progress_dialog_material.xml6
3 files changed, 11 insertions, 7 deletions
diff --git a/core/res/res/layout/alert_dialog_material.xml b/core/res/res/layout/alert_dialog_material.xml
index 831ee98..be89e41 100644
--- a/core/res/res/layout/alert_dialog_material.xml
+++ b/core/res/res/layout/alert_dialog_material.xml
@@ -33,8 +33,7 @@
android:gravity="center_vertical|start"
android:paddingStart="@dimen/alert_dialog_padding_material"
android:paddingEnd="@dimen/alert_dialog_padding_material"
- android:paddingTop="@dimen/alert_dialog_padding_top_material"
- android:paddingBottom="12dip">
+ android:paddingTop="@dimen/alert_dialog_padding_top_material">
<ImageView android:id="@+id/icon"
android:layout_width="32dip"
android:layout_height="32dip"
@@ -57,7 +56,8 @@
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
- android:minHeight="64dp">
+ android:minHeight="64dp"
+ android:paddingTop="@dimen/alert_dialog_padding_top_material">
<ScrollView android:id="@+id/scrollView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@@ -75,7 +75,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
- android:minHeight="48dp">
+ android:minHeight="64dp">
<FrameLayout android:id="@+id/custom"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
diff --git a/core/res/res/layout/alert_dialog_progress_material.xml b/core/res/res/layout/alert_dialog_progress_material.xml
index bcf946f..d005a44 100644
--- a/core/res/res/layout/alert_dialog_progress_material.xml
+++ b/core/res/res/layout/alert_dialog_progress_material.xml
@@ -19,7 +19,9 @@
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:paddingStart="@dimen/alert_dialog_padding_material"
- android:paddingEnd="@dimen/alert_dialog_padding_material">
+ android:paddingTop="@dimen/alert_dialog_padding_top_material"
+ android:paddingEnd="@dimen/alert_dialog_padding_material"
+ android:paddingBottom="@dimen/alert_dialog_padding_top_material">
<ProgressBar
android:id="@+id/progress"
style="?attr/progressBarStyleHorizontal"
diff --git a/core/res/res/layout/progress_dialog_material.xml b/core/res/res/layout/progress_dialog_material.xml
index c6eb1f9..54af106 100644
--- a/core/res/res/layout/progress_dialog_material.xml
+++ b/core/res/res/layout/progress_dialog_material.xml
@@ -26,7 +26,9 @@
android:layout_height="match_parent"
android:baselineAligned="false"
android:paddingStart="@dimen/alert_dialog_padding_material"
- android:paddingEnd="@dimen/alert_dialog_padding_material">
+ android:paddingTop="@dimen/alert_dialog_padding_top_material"
+ android:paddingEnd="@dimen/alert_dialog_padding_material"
+ android:paddingBottom="@dimen/alert_dialog_padding_top_material">
<ProgressBar
android:id="@id/progress"
@@ -34,7 +36,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:max="10000"
- android:layout_marginEnd="16dp" />
+ android:layout_marginEnd="@dimen/alert_dialog_padding_material" />
<TextView
android:id="@+id/message"