]> git.ktnx.net Git - mobile-ledger.git/commitdiff
use standard height toolbars in main activity and new transaction act.
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 3 Mar 2021 20:29:43 +0000 (22:29 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 3 Mar 2021 20:29:43 +0000 (22:29 +0200)
app/src/main/res/layout/activity_main.xml
app/src/main/res/layout/activity_new_transaction.xml

index 02c51e06fed69f6ba36f6c061ce1a09baa1d7c84..fcbafd50713054c77454a04a1d4f900733bcce4c 100644 (file)
                 <androidx.appcompat.widget.Toolbar
                     android:id="@+id/toolbar"
                     android:layout_width="match_parent"
-                    android:layout_height="@dimen/toolbar_height"
+                    android:layout_height="wrap_content"
                     android:background="?colorPrimary"
                     android:theme="@style/AppTheme.AppBarOverlay"
                     app:layout_constraintEnd_toEndOf="parent"
                     app:layout_constraintStart_toStartOf="parent"
                     app:layout_constraintTop_toTopOf="parent"
                     app:popupTheme="@style/AppTheme.PopupOverlay"
+                    app:subtitleTextAppearance="@style/TextAppearance.AppCompat.Widget.ActionBar.Subtitle"
+                    app:titleTextAppearance="@style/TextAppearance.AppCompat.Widget.ActionBar.Title"
                     />
 
 
index 995f9386c401cf713c71412feb5d4da7222d19b7..740587a5ed8e404e136b03dfa19d2aec43743c82 100644 (file)
             <androidx.appcompat.widget.Toolbar
                 android:id="@+id/toolbar"
                 android:layout_width="match_parent"
-                android:layout_height="@dimen/toolbar_height"
+                android:layout_height="wrap_content"
+                android:minHeight="?attr/actionBarSize"
                 android:background="?attr/colorPrimary"
                 app:popupTheme="@style/AppTheme.PopupOverlay"
+                app:subtitleTextAppearance="@style/TextAppearance.AppCompat.Widget.ActionBar.Subtitle"
+                app:titleTextAppearance="@style/TextAppearance.AppCompat.Widget.ActionBar.Title"
                 />
 
         </com.google.android.material.appbar.AppBarLayout>