mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-12-01 16:58:00 +01:00
try showing more action buttons at the top menu
This commit is contained in:
parent
3a9dc3e28d
commit
b798dac213
11 changed files with 41 additions and 41 deletions
|
@ -3,6 +3,26 @@
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
tools:ignore="AppCompatResource">
|
tools:ignore="AppCompatResource">
|
||||||
|
<item
|
||||||
|
android:id="@+id/cab_delete"
|
||||||
|
android:icon="@drawable/ic_delete_vector"
|
||||||
|
android:title="@string/delete"
|
||||||
|
app:showAsAction="always" />
|
||||||
|
<item
|
||||||
|
android:id="@+id/cab_properties"
|
||||||
|
android:icon="@drawable/ic_info_vector"
|
||||||
|
android:title="@string/properties"
|
||||||
|
app:showAsAction="always" />
|
||||||
|
<item
|
||||||
|
android:id="@+id/cab_pin"
|
||||||
|
android:icon="@drawable/ic_pin"
|
||||||
|
android:title="@string/pin_to_the_top"
|
||||||
|
app:showAsAction="always" />
|
||||||
|
<item
|
||||||
|
android:id="@+id/cab_unpin"
|
||||||
|
android:icon="@drawable/ic_unpin"
|
||||||
|
android:title="@string/unpin_folder"
|
||||||
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_move_to_top"
|
android:id="@+id/cab_move_to_top"
|
||||||
android:icon="@drawable/ic_move_to_top_vector"
|
android:icon="@drawable/ic_move_to_top_vector"
|
||||||
|
@ -13,26 +33,6 @@
|
||||||
android:icon="@drawable/ic_move_to_bottom_vector"
|
android:icon="@drawable/ic_move_to_bottom_vector"
|
||||||
android:title="@string/move_to_bottom"
|
android:title="@string/move_to_bottom"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="ifRoom" />
|
||||||
<item
|
|
||||||
android:id="@+id/cab_delete"
|
|
||||||
android:icon="@drawable/ic_delete_vector"
|
|
||||||
android:title="@string/delete"
|
|
||||||
app:showAsAction="ifRoom" />
|
|
||||||
<item
|
|
||||||
android:id="@+id/cab_properties"
|
|
||||||
android:icon="@drawable/ic_info_vector"
|
|
||||||
android:title="@string/properties"
|
|
||||||
app:showAsAction="ifRoom" />
|
|
||||||
<item
|
|
||||||
android:id="@+id/cab_pin"
|
|
||||||
android:icon="@drawable/ic_pin"
|
|
||||||
android:title="@string/pin_to_the_top"
|
|
||||||
app:showAsAction="ifRoom" />
|
|
||||||
<item
|
|
||||||
android:id="@+id/cab_unpin"
|
|
||||||
android:icon="@drawable/ic_unpin"
|
|
||||||
android:title="@string/unpin_folder"
|
|
||||||
app:showAsAction="ifRoom" />
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_change_order"
|
android:id="@+id/cab_change_order"
|
||||||
android:icon="@drawable/ic_drag_handle_vector"
|
android:icon="@drawable/ic_drag_handle_vector"
|
||||||
|
|
|
@ -5,5 +5,5 @@
|
||||||
android:id="@+id/cab_unhide"
|
android:id="@+id/cab_unhide"
|
||||||
android:icon="@drawable/ic_unhide_vector"
|
android:icon="@drawable/ic_unhide_vector"
|
||||||
android:title="@string/unhide"
|
android:title="@string/unhide"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="always" />
|
||||||
</menu>
|
</menu>
|
||||||
|
|
|
@ -7,17 +7,17 @@
|
||||||
android:id="@+id/cab_confirm_selection"
|
android:id="@+id/cab_confirm_selection"
|
||||||
android:icon="@drawable/ic_check_vector"
|
android:icon="@drawable/ic_check_vector"
|
||||||
android:title="@string/confirm_selection"
|
android:title="@string/confirm_selection"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="always" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_delete"
|
android:id="@+id/cab_delete"
|
||||||
android:icon="@drawable/ic_delete_vector"
|
android:icon="@drawable/ic_delete_vector"
|
||||||
android:title="@string/delete"
|
android:title="@string/delete"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="always" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_share"
|
android:id="@+id/cab_share"
|
||||||
android:icon="@drawable/ic_share_vector"
|
android:icon="@drawable/ic_share_vector"
|
||||||
android:title="@string/share"
|
android:title="@string/share"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="always" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_rotate"
|
android:id="@+id/cab_rotate"
|
||||||
android:icon="@drawable/ic_rotate_right_vector"
|
android:icon="@drawable/ic_rotate_right_vector"
|
||||||
|
|
|
@ -5,5 +5,5 @@
|
||||||
android:id="@+id/add_folder"
|
android:id="@+id/add_folder"
|
||||||
android:icon="@drawable/ic_plus_vector"
|
android:icon="@drawable/ic_plus_vector"
|
||||||
android:title="@string/add_folder"
|
android:title="@string/add_folder"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="always" />
|
||||||
</menu>
|
</menu>
|
||||||
|
|
|
@ -5,15 +5,15 @@
|
||||||
android:id="@+id/save_as"
|
android:id="@+id/save_as"
|
||||||
android:icon="@drawable/ic_check_vector"
|
android:icon="@drawable/ic_check_vector"
|
||||||
android:title="@string/save_as"
|
android:title="@string/save_as"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="always" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/edit"
|
android:id="@+id/edit"
|
||||||
android:icon="@drawable/ic_edit_vector"
|
android:icon="@drawable/ic_edit_vector"
|
||||||
android:title="@string/edit_with"
|
android:title="@string/edit_with"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="always" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/share"
|
android:id="@+id/share"
|
||||||
android:icon="@drawable/ic_share_vector"
|
android:icon="@drawable/ic_share_vector"
|
||||||
android:title="@string/share"
|
android:title="@string/share"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="always" />
|
||||||
</menu>
|
</menu>
|
||||||
|
|
|
@ -5,5 +5,5 @@
|
||||||
android:id="@+id/add_folder"
|
android:id="@+id/add_folder"
|
||||||
android:icon="@drawable/ic_plus_vector"
|
android:icon="@drawable/ic_plus_vector"
|
||||||
android:title="@string/add_folder"
|
android:title="@string/add_folder"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="always" />
|
||||||
</menu>
|
</menu>
|
||||||
|
|
|
@ -8,17 +8,17 @@
|
||||||
android:icon="@drawable/ic_search_vector"
|
android:icon="@drawable/ic_search_vector"
|
||||||
android:title="@string/search"
|
android:title="@string/search"
|
||||||
app:actionViewClass="androidx.appcompat.widget.SearchView"
|
app:actionViewClass="androidx.appcompat.widget.SearchView"
|
||||||
app:showAsAction="collapseActionView|ifRoom" />
|
app:showAsAction="collapseActionView|always" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/toggle_filename"
|
android:id="@+id/toggle_filename"
|
||||||
android:icon="@drawable/ic_label_vector"
|
android:icon="@drawable/ic_label_vector"
|
||||||
android:title="@string/toggle_filename"
|
android:title="@string/toggle_filename"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="always" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/sort"
|
android:id="@+id/sort"
|
||||||
android:icon="@drawable/ic_sort_vector"
|
android:icon="@drawable/ic_sort_vector"
|
||||||
android:title="@string/sort_by"
|
android:title="@string/sort_by"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="always" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/filter"
|
android:id="@+id/filter"
|
||||||
android:icon="@drawable/ic_filter_vector"
|
android:icon="@drawable/ic_filter_vector"
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
android:id="@+id/save"
|
android:id="@+id/save"
|
||||||
android:icon="@drawable/ic_check_vector"
|
android:icon="@drawable/ic_check_vector"
|
||||||
android:title="@string/save"
|
android:title="@string/save"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="always" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/allow_changing_aspect_ratio"
|
android:id="@+id/allow_changing_aspect_ratio"
|
||||||
android:title="@string/allow_changing_aspect_ratio"
|
android:title="@string/allow_changing_aspect_ratio"
|
||||||
|
|
|
@ -7,12 +7,12 @@
|
||||||
android:id="@+id/menu_change_orientation"
|
android:id="@+id/menu_change_orientation"
|
||||||
android:icon="@drawable/ic_orientation_auto_vector"
|
android:icon="@drawable/ic_orientation_auto_vector"
|
||||||
android:title="@string/change_orientation"
|
android:title="@string/change_orientation"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="always" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_share"
|
android:id="@+id/menu_share"
|
||||||
android:icon="@drawable/ic_share_vector"
|
android:icon="@drawable/ic_share_vector"
|
||||||
android:title="@string/share"
|
android:title="@string/share"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="always" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_open_with"
|
android:id="@+id/menu_open_with"
|
||||||
android:showAsAction="never"
|
android:showAsAction="never"
|
||||||
|
|
|
@ -8,17 +8,17 @@
|
||||||
android:icon="@drawable/ic_check_vector"
|
android:icon="@drawable/ic_check_vector"
|
||||||
android:title="@string/save_as"
|
android:title="@string/save_as"
|
||||||
android:visible="false"
|
android:visible="false"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="always" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_delete"
|
android:id="@+id/menu_delete"
|
||||||
android:icon="@drawable/ic_delete_vector"
|
android:icon="@drawable/ic_delete_vector"
|
||||||
android:title="@string/delete"
|
android:title="@string/delete"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="always" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_share"
|
android:id="@+id/menu_share"
|
||||||
android:icon="@drawable/ic_share_vector"
|
android:icon="@drawable/ic_share_vector"
|
||||||
android:title="@string/share"
|
android:title="@string/share"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="always" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_rotate"
|
android:id="@+id/menu_rotate"
|
||||||
android:icon="@drawable/ic_rotate_right_vector"
|
android:icon="@drawable/ic_rotate_right_vector"
|
||||||
|
|
|
@ -7,17 +7,17 @@
|
||||||
android:id="@+id/menu_share"
|
android:id="@+id/menu_share"
|
||||||
android:icon="@drawable/ic_share_vector"
|
android:icon="@drawable/ic_share_vector"
|
||||||
android:title="@string/share"
|
android:title="@string/share"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="always" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_properties"
|
android:id="@+id/menu_properties"
|
||||||
android:icon="@drawable/ic_info_vector"
|
android:icon="@drawable/ic_info_vector"
|
||||||
android:title="@string/properties"
|
android:title="@string/properties"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="always" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_edit"
|
android:id="@+id/menu_edit"
|
||||||
android:icon="@drawable/ic_edit_vector"
|
android:icon="@drawable/ic_edit_vector"
|
||||||
android:title="@string/edit"
|
android:title="@string/edit"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="always" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_set_as"
|
android:id="@+id/menu_set_as"
|
||||||
android:icon="@drawable/ic_set_as_vector"
|
android:icon="@drawable/ic_set_as_vector"
|
||||||
|
|
Loading…
Reference in a new issue