aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/res/values
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-09-18 20:09:39 +0200
committerDaniel Gultsch <daniel@gultsch.de>2016-09-18 20:09:39 +0200
commit6b904d4de1ab755277212d574bee618d7296cd2d (patch)
treee6097d19f260fa35d76277d6748720c4c3cb0d7c /src/main/res/values
parent7bdd4166c02a88b1e5249056fabcf0e1833ab555 (diff)
use proper paddings in dialogs on android < 5
Diffstat (limited to '')
-rw-r--r--src/main/res/values-v21/themes.xml6
-rw-r--r--src/main/res/values/attrs.xml3
-rw-r--r--src/main/res/values/themes.xml6
3 files changed, 15 insertions, 0 deletions
diff --git a/src/main/res/values-v21/themes.xml b/src/main/res/values-v21/themes.xml
index 330bd610..d6612552 100644
--- a/src/main/res/values-v21/themes.xml
+++ b/src/main/res/values-v21/themes.xml
@@ -37,6 +37,9 @@
<item name="attr/icon_alpha">0.54</item>
+ <item name="attr/dialog_horizontal_padding">24dp</item>
+ <item name="attr/dialog_vertical_padding">16dp</item>
+
<item name="attr/icon_add_group">@drawable/ic_group_add_white_24dp</item>
<item name="attr/icon_add_person">@drawable/ic_person_add_white_24dp</item>
<item name="attr/icon_cancel">@drawable/ic_cancel_white_24dp</item>
@@ -100,6 +103,9 @@
<item name="attr/icon_alpha">1.0</item>
+ <item name="attr/dialog_horizontal_padding">24dp</item>
+ <item name="attr/dialog_vertical_padding">16dp</item>
+
<item name="attr/icon_add_group">@drawable/ic_group_add_white_24dp</item>
<item name="attr/icon_add_person">@drawable/ic_person_add_white_24dp</item>
<item name="attr/icon_cancel">@drawable/ic_cancel_white_24dp</item>
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 @@
<attr name="icon_notifications_paused" format="reference"/>
<attr name="icon_notifications_none" format="reference"/>
+ <attr name="dialog_horizontal_padding" format="dimension"/>
+ <attr name="dialog_vertical_padding" format="dimension"/>
+
</resources> \ 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 @@
<item name="attr/icon_alpha">1.0</item>
+ <item name="attr/dialog_horizontal_padding">16dp</item>
+ <item name="attr/dialog_vertical_padding">16dp</item>
+
<item name="attr/icon_group">@drawable/ic_action_group</item>
<item name="attr/icon_new">@drawable/ic_action_new</item>
<item name="attr/icon_new_attachment">@drawable/ic_action_new_attachment</item>
@@ -93,6 +96,9 @@
<item name="attr/icon_alpha">1.0</item>
+ <item name="attr/dialog_horizontal_padding">16dp</item>
+ <item name="attr/dialog_vertical_padding">16dp</item>
+
<item name="attr/icon_add_group">@drawable/ic_action_add_group</item>
<item name="attr/icon_add_person">@drawable/ic_action_add_person</item>
<item name="attr/icon_cancel">@drawable/ic_action_cancel</item>