From 9db0afa3b1f85a74c6ddf7a7cedd7cb7ddd1035a Mon Sep 17 00:00:00 2001 From: Soren Stoutner Date: Mon, 14 Jan 2019 17:30:42 -0700 Subject: [PATCH] Add an option to sort by display order in the bookmarks database view. https://redmine.stoutner.com/issues/221 --- .idea/assetWizardSettings.xml | 7 +- .../main/assets/de/about_licenses_dark.html | 8 +- .../main/assets/de/about_licenses_light.html | 8 +- .../main/assets/en/about_licenses_dark.html | 8 +- .../main/assets/en/about_licenses_light.html | 8 +- .../main/assets/es/about_licenses_dark.html | 8 +- .../main/assets/es/about_licenses_light.html | 8 +- .../main/assets/it/about_licenses_dark.html | 8 +- .../main/assets/it/about_licenses_light.html | 9 +- .../main/assets/ru/about_licenses_dark.html | 9 +- .../main/assets/ru/about_licenses_light.html | 9 +- .../main/assets/shared_images/sort_dark.png | Bin 0 -> 355 bytes .../main/assets/shared_images/sort_light.png | Bin 0 -> 347 bytes .../shared_images/sort_selected_dark.png | Bin 0 -> 954 bytes .../shared_images/sort_selected_light.png | Bin 0 -> 926 bytes .../main/assets/tr/about_licenses_dark.html | 8 +- .../main/assets/tr/about_licenses_light.html | 8 +- .../activities/BookmarksActivity.java | 4 +- .../BookmarksDatabaseViewActivity.java | 187 +++++++++++------- .../activities/MainWebViewActivity.java | 2 +- .../helpers/BookmarksDatabaseHelper.java | 55 ++++-- app/src/main/res/drawable/sort_dark.xml | 18 ++ app/src/main/res/drawable/sort_light.xml | 18 ++ .../main/res/drawable/sort_selected_dark.xml | 26 +++ .../main/res/drawable/sort_selected_light.xml | 26 +++ app/src/main/res/drawable/theme_dark.xml | 2 +- app/src/main/res/drawable/theme_light.xml | 2 +- .../bookmarks_databaseview_options_menu.xml | 32 +++ .../main/res/menu/webview_options_menu.xml | 2 +- app/src/main/res/values-es/strings.xml | 7 +- app/src/main/res/values-it/strings.xml | 7 +- app/src/main/res/values-ru/strings.xml | 5 +- app/src/main/res/values-tr/strings.xml | 5 +- app/src/main/res/values-v21/styles.xml | 4 +- app/src/main/res/values/attrs.xml | 3 +- app/src/main/res/values/strings.xml | 5 +- app/src/main/res/values/styles.xml | 4 +- 37 files changed, 383 insertions(+), 137 deletions(-) create mode 100644 app/src/main/assets/shared_images/sort_dark.png create mode 100644 app/src/main/assets/shared_images/sort_light.png create mode 100644 app/src/main/assets/shared_images/sort_selected_dark.png create mode 100644 app/src/main/assets/shared_images/sort_selected_light.png create mode 100644 app/src/main/res/drawable/sort_dark.xml create mode 100644 app/src/main/res/drawable/sort_light.xml create mode 100644 app/src/main/res/drawable/sort_selected_dark.xml create mode 100644 app/src/main/res/drawable/sort_selected_light.xml create mode 100644 app/src/main/res/menu/bookmarks_databaseview_options_menu.xml diff --git a/.idea/assetWizardSettings.xml b/.idea/assetWizardSettings.xml index 9f20b9ba..e167cf29 100644 --- a/.idea/assetWizardSettings.xml +++ b/.idea/assetWizardSettings.xml @@ -68,7 +68,7 @@ @@ -78,9 +78,10 @@ diff --git a/app/src/main/assets/de/about_licenses_dark.html b/app/src/main/assets/de/about_licenses_dark.html index dcdc9b09..d239bb7d 100644 --- a/app/src/main/assets/de/about_licenses_dark.html +++ b/app/src/main/assets/de/about_licenses_dark.html @@ -1,5 +1,5 @@ + + + + + + + diff --git a/app/src/main/res/drawable/sort_light.xml b/app/src/main/res/drawable/sort_light.xml new file mode 100644 index 00000000..26ad9008 --- /dev/null +++ b/app/src/main/res/drawable/sort_light.xml @@ -0,0 +1,18 @@ + + + + + + + + diff --git a/app/src/main/res/drawable/sort_selected_dark.xml b/app/src/main/res/drawable/sort_selected_dark.xml new file mode 100644 index 00000000..228510bb --- /dev/null +++ b/app/src/main/res/drawable/sort_selected_dark.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + diff --git a/app/src/main/res/drawable/sort_selected_light.xml b/app/src/main/res/drawable/sort_selected_light.xml new file mode 100644 index 00000000..f980582f --- /dev/null +++ b/app/src/main/res/drawable/sort_selected_light.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + diff --git a/app/src/main/res/drawable/theme_dark.xml b/app/src/main/res/drawable/theme_dark.xml index 9d132c4e..3a717ce7 100644 --- a/app/src/main/res/drawable/theme_dark.xml +++ b/app/src/main/res/drawable/theme_dark.xml @@ -9,7 +9,7 @@ android:width="24dp" android:viewportWidth="24.0" android:viewportHeight="24.0" - tools:ignore="VectorRaster"> + tools:ignore="VectorRaster" > + tools:ignore="VectorRaster" > + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/menu/webview_options_menu.xml b/app/src/main/res/menu/webview_options_menu.xml index acf69eaf..8c26ff92 100644 --- a/app/src/main/res/menu/webview_options_menu.xml +++ b/app/src/main/res/menu/webview_options_menu.xml @@ -1,7 +1,7 @@