increased padding on image buttons on v21 to match material guidelines

This commit is contained in:
Daniel Gultsch 2015-04-28 14:46:52 +02:00
parent 93e942f96d
commit 92d14c4a00
5 changed files with 9 additions and 7 deletions

View file

@ -337,7 +337,7 @@
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:background="?android:selectableItemBackground" android:background="?android:selectableItemBackground"
android:padding="8dp" android:padding="@dimen/image_button_padding"
android:src="?attr/icon_copy" android:src="?attr/icon_copy"
android:visibility="visible" android:visibility="visible"
android:contentDescription="@string/copy_otr_clipboard_description"/> android:contentDescription="@string/copy_otr_clipboard_description"/>

View file

@ -75,7 +75,7 @@
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:background="?android:selectableItemBackground" android:background="?android:selectableItemBackground"
android:padding="8dp" android:padding="@dimen/image_button_padding"
android:src="?attr/icon_edit_dark"/> android:src="?attr/icon_edit_dark"/>
</RelativeLayout> </RelativeLayout>
@ -102,7 +102,7 @@
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:background="?android:selectableItemBackground" android:background="?android:selectableItemBackground"
android:padding="8dp" android:padding="@dimen/image_button_padding"
android:src="?attr/icon_settings"/> android:src="?attr/icon_settings"/>
</RelativeLayout> </RelativeLayout>

View file

@ -34,7 +34,7 @@
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:background="?android:selectableItemBackground" android:background="?android:selectableItemBackground"
android:padding="8dp" android:padding="@dimen/image_button_padding"
android:src="?attr/icon_remove" android:src="?attr/icon_remove"
android:visibility="invisible" /> android:visibility="invisible" />

View file

@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<dimen name="elv_undo_bottom_offset">63dp</dimen> <!-- 48dp + 15dp --> <dimen name="elv_undo_bottom_offset">63dp</dimen> <!-- 48dp + 15dp -->
<dimen name="image_button_padding">12dp</dimen>
</resources> </resources>

View file

@ -1,7 +1,8 @@
<resources> <resources>
<!-- Default screen margins, per the Android Design guidelines. --> <!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">8dp</dimen> <dimen name="activity_horizontal_margin">8dp</dimen>
<dimen name="activity_vertical_margin">8dp</dimen> <dimen name="activity_vertical_margin">8dp</dimen>
<dimen name="infocard_padding">16dp</dimen> <dimen name="infocard_padding">16dp</dimen>
<dimen name="conversations_overview_width">288dp</dimen> <dimen name="conversations_overview_width">288dp</dimen>
<dimen name="image_button_padding">8dp</dimen>
</resources> </resources>