]> git.ktnx.net Git - mobile-ledger.git/commitdiff
use toolbar height that changes with font size
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 19 May 2020 20:51:39 +0000 (20:51 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 19 May 2020 20:51:39 +0000 (20:51 +0000)
the text inside scales with the system font, so should the toolbar

app/src/main/res/layout/activity_new_transaction.xml
app/src/main/res/layout/main_app_layout.xml
app/src/main/res/values/dimens.xml

index ede22f87ac56d91c42add498c883907ce37b1697..2bec0a120e6bc92bd2c97e3cde2c13a1741bb3df 100644 (file)
@@ -61,7 +61,7 @@
             <androidx.appcompat.widget.Toolbar
                 android:id="@+id/toolbar"
                 android:layout_width="match_parent"
-                android:layout_height="?attr/actionBarSize"
+                android:layout_height="@dimen/toolbar_height"
                 android:background="?attr/colorPrimary"
                 app:popupTheme="@style/AppTheme.PopupOverlay" />
 
index 80aa5b2d6a5feebd3b91fbc83f203bfb2e5fa746..daf3bd22fd82e22b5cf3750000322c8be887d8fc 100644 (file)
@@ -52,7 +52,7 @@
             <androidx.appcompat.widget.Toolbar
                 android:id="@+id/toolbar"
                 android:layout_width="match_parent"
-                android:layout_height="?attr/actionBarSize"
+                android:layout_height="@dimen/toolbar_height"
                 android:background="?colorPrimary"
                 android:theme="@style/AppTheme.AppBarOverlay"
                 app:popupTheme="@style/AppTheme.PopupOverlay"
index d44c920a38d874e2014e71b1633db7b952d58130..9ed82c246f78ceddf78d79b13695e054fd83e247 100644 (file)
@@ -24,4 +24,5 @@
     <dimen name="app_bar_height">200dp</dimen>
     <dimen name="item_width">200dp</dimen>
     <dimen name="text_margin">16dp</dimen>
+    <dimen name="toolbar_height">56sp</dimen>
 </resources>
\ No newline at end of file