From c88c5726b801301da9afce899b9c627d9c563464 Mon Sep 17 00:00:00 2001 From: Arne Coucheron Date: Thu, 13 Jul 2017 01:36:11 +0200 Subject: Gallery2: Fix various issues and glitches * Remove unnecessary navbar toggles, and add missing ones * Modify picker dialog style * Fix editor bottom bar glitch with API 25 * Update main gallery layout so new bottom navigation works properly, and fix various other issues related to it * Don't hide action bar in editor when adjusting effects, so we can see the values we adjust * Update toolbar layout Change-Id: I2a8f0b57ec874434c0fd0bb55de784b5d8379091 --- res/layout/action_mode.xml | 3 +- res/layout/filtershow_main_panel.xml | 2 +- res/layout/gallery_main.xml | 39 ++++++++++++---------- res/layout/gl_root_group.xml | 3 +- res/layout/popup_list_item.xml | 4 +-- res/layout/toolbar.xml | 24 ++++++++----- res/menu/albumset.xml | 2 +- res/values/colors.xml | 2 +- res/values/styles.xml | 8 +++-- src/com/android/gallery3d/app/AlbumPage.java | 9 ++++- src/com/android/gallery3d/app/AlbumSetPage.java | 13 +++++--- src/com/android/gallery3d/app/GalleryActivity.java | 7 +--- src/com/android/gallery3d/app/PhotoPage.java | 5 ++- src/com/android/gallery3d/app/SlideshowPage.java | 4 ++- src/com/android/gallery3d/app/TimeLinePage.java | 4 +-- .../gallery3d/filtershow/FilterShowActivity.java | 2 +- 16 files changed, 76 insertions(+), 55 deletions(-) diff --git a/res/layout/action_mode.xml b/res/layout/action_mode.xml index efa920dda..186ce5ba6 100644 --- a/res/layout/action_mode.xml +++ b/res/layout/action_mode.xml @@ -24,6 +24,7 @@ + + android:layout_height="match_parent"> - + android:layout_height="match_parent" + android:layout_above="@+id/bottom_navigation"> - + + + + + - - - + + + + diff --git a/res/layout/gl_root_group.xml b/res/layout/gl_root_group.xml index eee2b49f8..630217153 100644 --- a/res/layout/gl_root_group.xml +++ b/res/layout/gl_root_group.xml @@ -19,8 +19,7 @@ + android:layout_height="match_parent"> diff --git a/res/layout/toolbar.xml b/res/layout/toolbar.xml index cf9b8a9ca..4c2a03a4e 100644 --- a/res/layout/toolbar.xml +++ b/res/layout/toolbar.xml @@ -28,14 +28,20 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --> - + android:layout_height="wrap_content" + android:theme="@style/ToolbarTheme"> + + + + - diff --git a/res/menu/albumset.xml b/res/menu/albumset.xml index 603fb9b7e..b21bf3d38 100644 --- a/res/menu/albumset.xml +++ b/res/menu/albumset.xml @@ -24,7 +24,7 @@ + android:showAsAction="ifRoom" /> @color/white - @color/primary + @color/black @color/light_black #8A000000 #8A000000 diff --git a/res/values/styles.xml b/res/values/styles.xml index dafe0d9c9..ebc975da9 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -23,7 +23,7 @@ @android:style/Widget.CompoundButton - - @@ -338,6 +340,8 @@