summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authoraleksandar-stefanovic <theonewithideas@gmail.com>2017-01-31 21:51:25 +0100
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2017-02-07 12:07:26 +0000
commit23f39d7283e71bccf244ed75b13a4860bd1ab066 (patch)
tree2d1ea6ac8bcaf5e568592b1897d2d35b07924b39 /android
parent05e78bde26d8b8b257ed22a0ce20c5b386a629d1 (diff)
android: move sort options to separate menu
This is one in a series of commits of trying to unclutter the context menu, which was pretty unorganized. Change-Id: I8a9473041730492a0b60c6b71fd7fd7996cedd89 Reviewed-on: https://gerrit.libreoffice.org/33768 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'android')
-rw-r--r--android/source/res/drawable/ic_sort_black_24dp.xml13
-rw-r--r--android/source/res/menu/view_menu.xml27
-rw-r--r--android/source/res/values/strings.xml2
3 files changed, 36 insertions, 6 deletions
diff --git a/android/source/res/drawable/ic_sort_black_24dp.xml b/android/source/res/drawable/ic_sort_black_24dp.xml
new file mode 100644
index 000000000000..d582deea67ec
--- /dev/null
+++ b/android/source/res/drawable/ic_sort_black_24dp.xml
@@ -0,0 +1,13 @@
+<!--
+ This file is part of the LibreOffice project.
+
+ This Source Code Form is subject to the terms of the Mozilla Public
+ License, v. 2.0. If a copy of the MPL was not distributed with this
+ file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ -->
+
+<vector android:autoMirrored="true" android:height="24dp"
+ android:viewportHeight="24.0" android:viewportWidth="24.0"
+ android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillColor="#FF000000" android:pathData="M3,18h6v-2L3,16v2zM3,6v2h18L21,6L3,6zM3,13h12v-2L3,11v2z"/>
+</vector>
diff --git a/android/source/res/menu/view_menu.xml b/android/source/res/menu/view_menu.xml
index b89ff30d2238..fe28da2cf701 100644
--- a/android/source/res/menu/view_menu.xml
+++ b/android/source/res/menu/view_menu.xml
@@ -2,14 +2,29 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
+ <item
+ android:id="@+id/menu_sort"
+ android:title="@string/sort"
+ android:icon="@drawable/ic_sort_black_24dp"
+ app:showAsAction="ifRoom">
+
+ <menu>
+
+ <item android:id="@+id/menu_sort_size"
+ android:title="@string/menu_sort_size" />
+ <item android:id="@+id/menu_sort_az"
+ android:title="@string/menu_sort_az"/>
+ <item android:id="@+id/menu_sort_modified"
+ android:title="@string/menu_sort_modified"/>
+
+
+ </menu>
+
+ </item>
+
<item android:id="@+id/menu_view_toggle"
android:title="@string/grid_view"/>
- <item android:id="@+id/menu_sort_size"
- android:title="@string/menu_sort_size"/>
- <item android:id="@+id/menu_sort_az"
- android:title="@string/menu_sort_az"/>
- <item android:id="@+id/menu_sort_modified"
- android:title="@string/menu_sort_modified"/>
+
<item android:id="@+id/menu_storage_preferences"
android:title="@string/storage_provider_settings"/>
<item android:id="@+id/action_about"
diff --git a/android/source/res/values/strings.xml b/android/source/res/values/strings.xml
index f02b4097723a..6bdbe26eef85 100644
--- a/android/source/res/values/strings.xml
+++ b/android/source/res/values/strings.xml
@@ -20,6 +20,8 @@
<string name="menu_search">Search</string>
<string name="list_view">List</string>
<string name="grid_view">Grid</string>
+ <string name="filter">Filter by</string>
+ <string name="sort">Sort by</string>
<string name="sort_smallest">Smallest first</string>
<string name="sort_largest">Largest first</string>
<string name="sort_az">A-Z</string>