From 1902593dea349fe20dbd5077ee27fe3861136f65 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 20 Dec 2022 17:08:25 +0100 Subject: [PATCH] remove the app label from the top menu, show some icons instead --- app/build.gradle | 2 +- app/src/main/res/drawable/ic_clear_vector.xml | 3 --- app/src/main/res/layout/activity_main.xml | 1 - app/src/main/res/menu/menu.xml | 8 ++++---- 4 files changed, 5 insertions(+), 9 deletions(-) delete mode 100644 app/src/main/res/drawable/ic_clear_vector.xml diff --git a/app/build.gradle b/app/build.gradle index 01faacd..d3b6249 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -63,6 +63,6 @@ android { } dependencies { - implementation 'com.github.SimpleMobileTools:Simple-Commons:c6d0ae9f50' + implementation 'com.github.SimpleMobileTools:Simple-Commons:5877cf8b05' implementation "androidx.print:print:1.0.0" } diff --git a/app/src/main/res/drawable/ic_clear_vector.xml b/app/src/main/res/drawable/ic_clear_vector.xml deleted file mode 100644 index f3a6eeb..0000000 --- a/app/src/main/res/drawable/ic_clear_vector.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 97d1427..3d07bfe 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -11,7 +11,6 @@ android:layout_height="?attr/actionBarSize" android:background="@color/color_primary" app:menu="@menu/menu" - app:title="@string/app_launcher_name" app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" /> + app:showAsAction="ifRoom" /> + app:showAsAction="always" />