[Android] ActionBar: fix overlay on medias in landscape

Duncan McNamara git at videolan.org
Tue Nov 2 12:40:29 UTC 2021


vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Thu Oct 21 18:45:39 2021 +0200| [8a0ba8ffc38763d3914329dc997e8e918b3f5caa] | committer: Nicolas Pomepuy

ActionBar: fix overlay on medias in landscape

Sets the size of the action bar to the size of the toolbar, so that the
action bar doesn't hide medias.

> https://code.videolan.org/videolan/vlc-android/commit/8a0ba8ffc38763d3914329dc997e8e918b3f5caa
---

 application/vlc-android/res/values/styles.xml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/application/vlc-android/res/values/styles.xml b/application/vlc-android/res/values/styles.xml
index da2b8f510..9d5b7f9e4 100644
--- a/application/vlc-android/res/values/styles.xml
+++ b/application/vlc-android/res/values/styles.xml
@@ -31,6 +31,7 @@
         <item name="colorOnPrimary">@color/white</item>
         <item name="colorAccent">@color/orange800</item>
         <item name="windowActionModeOverlay">true</item>
+        <item name="actionBarSize">@dimen/toolbar_height</item>
         <item name="colorOnSurface">@color/black</item>
         <item name="colorControlHighlight">@color/orange800</item>
         <item name="colorControlNormal">@color/grey700</item>
@@ -180,6 +181,7 @@
     <style name="Theme.VLC.Apearance.Black" parent="Theme.MaterialComponents.NoActionBar">
         <item name="marginTopContent">50dp</item>
         <item name="toolbar_popup_style">@style/ThemeOverlay.MaterialComponents.Dark</item>
+        <item name="actionBarSize">@dimen/toolbar_height</item>
 
         <item name="android:gridViewStyle">@style/Theme.VLC.List</item>
         <item name="android:expandableListViewStyle">@style/Theme.VLC.List</item>



More information about the Android mailing list