From 6b904d4de1ab755277212d574bee618d7296cd2d Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sun, 18 Sep 2016 20:09:39 +0200 Subject: use proper paddings in dialogs on android < 5 --- src/main/res/layout/create_conference_dialog.xml | 16 ++++++++-------- src/main/res/layout/dialog_clear_history.xml | 7 ++++++- src/main/res/layout/dialog_show_password.xml | 5 ++++- src/main/res/layout/enter_jid_dialog.xml | 20 ++++++++++---------- src/main/res/values-v21/themes.xml | 6 ++++++ src/main/res/values/attrs.xml | 3 +++ src/main/res/values/themes.xml | 6 ++++++ 7 files changed, 43 insertions(+), 20 deletions(-) (limited to 'src/main') diff --git a/src/main/res/layout/create_conference_dialog.xml b/src/main/res/layout/create_conference_dialog.xml index 8aae08a6..d81ed0f2 100644 --- a/src/main/res/layout/create_conference_dialog.xml +++ b/src/main/res/layout/create_conference_dialog.xml @@ -1,12 +1,12 @@ + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:paddingBottom="?attr/dialog_vertical_padding" + android:paddingLeft="?attr/dialog_horizontal_padding" + android:paddingRight="?attr/dialog_horizontal_padding" + android:paddingTop="?attr/dialog_vertical_padding"> + android:textSize="?attr/TextSizeBody" /> diff --git a/src/main/res/layout/dialog_clear_history.xml b/src/main/res/layout/dialog_clear_history.xml index 252808c8..d130b710 100644 --- a/src/main/res/layout/dialog_clear_history.xml +++ b/src/main/res/layout/dialog_clear_history.xml @@ -3,11 +3,15 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" - android:padding="8dp" > + android:paddingLeft="?attr/dialog_horizontal_padding" + android:paddingRight="?attr/dialog_horizontal_padding" + android:paddingBottom="?attr/dialog_vertical_padding" + android:paddingTop="?attr/dialog_vertical_padding"> @@ -15,6 +19,7 @@ diff --git a/src/main/res/layout/dialog_show_password.xml b/src/main/res/layout/dialog_show_password.xml index dba0690c..16765963 100644 --- a/src/main/res/layout/dialog_show_password.xml +++ b/src/main/res/layout/dialog_show_password.xml @@ -3,7 +3,10 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" - android:padding="16dp" > + android:paddingLeft="?attr/dialog_horizontal_padding" + android:paddingRight="?attr/dialog_horizontal_padding" + android:paddingBottom="?attr/dialog_vertical_padding" + android:paddingTop="?attr/dialog_vertical_padding"> + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:paddingBottom="?attr/dialog_vertical_padding" + android:paddingLeft="?attr/dialog_horizontal_padding" + android:paddingRight="?attr/dialog_horizontal_padding" + android:paddingTop="?attr/dialog_vertical_padding"> + android:textSize="?attr/TextSizeBody" /> + android:layout_height="wrap_content" /> + android:textSize="?attr/TextSizeBody" /> 0.54 + 24dp + 16dp + @drawable/ic_group_add_white_24dp @drawable/ic_person_add_white_24dp @drawable/ic_cancel_white_24dp @@ -100,6 +103,9 @@ 1.0 + 24dp + 16dp + @drawable/ic_group_add_white_24dp @drawable/ic_person_add_white_24dp @drawable/ic_cancel_white_24dp diff --git a/src/main/res/values/attrs.xml b/src/main/res/values/attrs.xml index 8062cd7e..82f9db89 100644 --- a/src/main/res/values/attrs.xml +++ b/src/main/res/values/attrs.xml @@ -53,4 +53,7 @@ + + + \ No newline at end of file diff --git a/src/main/res/values/themes.xml b/src/main/res/values/themes.xml index 1b3a4098..f15822c9 100644 --- a/src/main/res/values/themes.xml +++ b/src/main/res/values/themes.xml @@ -43,6 +43,9 @@ 1.0 + 16dp + 16dp + @drawable/ic_action_group @drawable/ic_action_new @drawable/ic_action_new_attachment @@ -93,6 +96,9 @@ 1.0 + 16dp + 16dp + @drawable/ic_action_add_group @drawable/ic_action_add_person @drawable/ic_action_cancel -- cgit v1.2.3