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 ede22f8..2bec0a1 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 80aa5b2..daf3bd2 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 d44c920..9ed82c2 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