Set secondary icon to fixed, smaller size (may undo when using settings icon)

This commit is contained in:
dankito 2020-04-23 20:36:22 +02:00
parent d6b136e7f3
commit 2d436d2c9c
2 changed files with 5 additions and 1 deletions

View File

@ -55,7 +55,7 @@
<ImageButton <ImageButton
android:id="@+id/btnSecondaryIcon" android:id="@+id/btnSecondaryIcon"
android:layout_width="wrap_content" android:layout_width="@dimen/material_drawer_item_secondary_item_secondary_item_width"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@android:color/transparent" android:background="@android:color/transparent"
android:gravity="center" android:gravity="center"

View File

@ -2,8 +2,12 @@
<!-- Default screen margins, per the Android Design guidelines. --> <!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen> <dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen> <dimen name="activity_vertical_margin">16dp</dimen>
<dimen name="nav_header_vertical_spacing">8dp</dimen> <dimen name="nav_header_vertical_spacing">8dp</dimen>
<dimen name="nav_header_height">176dp</dimen> <dimen name="nav_header_height">176dp</dimen>
<!-- TODO: may undo when real settings icon is used-->
<dimen name="material_drawer_item_secondary_item_secondary_item_width">36dp</dimen>
<dimen name="fab_margin">16dp</dimen> <dimen name="fab_margin">16dp</dimen>
<dimen name="fab_margin_bottom_without_toolbar">16dp</dimen> <dimen name="fab_margin_bottom_without_toolbar">16dp</dimen>
<dimen name="fab_margin_bottom_with_toolbar">42dp</dimen> <dimen name="fab_margin_bottom_with_toolbar">42dp</dimen>