Add title to menu items

This commit is contained in:
Matéo Duparc 2021-06-11 16:30:40 +02:00
parent ae93d78615
commit 30508dd7e1
Signed by untrusted user: hardcoresushi
GPG Key ID: 007F84120107191E
5 changed files with 29 additions and 17 deletions

View File

@ -8,12 +8,6 @@
android:visible="false"
android:icon="@drawable/icon_select_all"/>
<item
android:id="@+id/cut"
app:showAsAction="always"
android:visible="false"
android:icon="@drawable/icon_cut"/>
<item
android:id="@+id/delete"
app:showAsAction="always"
@ -27,6 +21,13 @@
android:icon="@drawable/icon_copy"
android:title="@string/copy_menu_title"/>
<item
android:id="@+id/cut"
app:showAsAction="ifRoom"
android:visible="false"
android:title="@string/cut"
android:icon="@drawable/icon_cut"/>
<item
android:id="@+id/decrypt"
app:showAsAction="ifRoom"
@ -61,12 +62,14 @@
<item
android:id="@+id/sort"
app:showAsAction="always"
app:showAsAction="ifRoom"
android:title="@string/sort_by"
android:icon="@drawable/icon_sort"/>
<item
android:id="@+id/close"
app:showAsAction="always"
app:showAsAction="ifRoom"
android:title="@string/close_volume"
android:icon="@drawable/icon_close"/>
</menu>

View File

@ -3,30 +3,32 @@
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/external_open"
android:id="@+id/external_open"
app:showAsAction="never"
android:visible="false"
android:title="@string/external_open"/>
<item
android:id="@+id/rename"
android:id="@+id/rename"
app:showAsAction="never"
android:visible="false"
android:title="@string/rename"/>
<item
android:id="@+id/validate"
app:showAsAction="ifRoom"
app:showAsAction="always"
android:icon="@drawable/icon_check"/>
<item
android:id="@+id/sort"
app:showAsAction="always"
app:showAsAction="ifRoom"
android:title="@string/sort_by"
android:icon="@drawable/icon_sort"/>
<item
android:id="@+id/close"
app:showAsAction="always"
app:showAsAction="ifRoom"
android:title="@string/close_volume"
android:icon="@drawable/icon_close"/>
</menu>

View File

@ -4,13 +4,13 @@
<item
android:id="@+id/validate"
app:showAsAction="ifRoom"
app:showAsAction="always"
android:visible="false"
android:icon="@drawable/icon_check"/>
<item
android:id="@+id/select_all"
app:showAsAction="ifRoom"
app:showAsAction="always"
android:visible="false"
android:icon="@drawable/icon_select_all"/>
@ -22,12 +22,14 @@
<item
android:id="@+id/sort"
app:showAsAction="always"
app:showAsAction="ifRoom"
android:title="@string/sort_by"
android:icon="@drawable/icon_sort"/>
<item
android:id="@+id/close"
app:showAsAction="always"
app:showAsAction="ifRoom"
android:title="@string/close_volume"
android:icon="@drawable/icon_close"/>
</menu>

View File

@ -1,10 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/menu_save"
app:showAsAction="always"
android:icon="@drawable/icon_save"/>
<item
android:id="@+id/word_wrap"
app:showAsAction="never"

View File

@ -195,4 +195,7 @@
<string name="auto_fit_title">Video player screen auto-rotation</string>
<string name="auto_fit_summary">Auto-rotate the screen to fit video dimensions</string>
<string name="open_tree_failed">No file explorer found. Please install one and retry.</string>
<string name="close_volume">Close volume</string>
<string name="sort_by">Sort By</string>
<string name="cut">Cut</string>
</resources>