]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/res/layout/main_coordinatorlayout.xml
Fix the navigation drawer after exiting a full screen video. https://redmine.stoutne...
[PrivacyBrowserAndroid.git] / app / src / main / res / layout / main_coordinatorlayout.xml
index aaa4bd66beae0250e380ea0b1c97d6cfc16cec29..0dba1f956852a28b8211221d1f93e1e8b2af5665 100644 (file)
@@ -26,8 +26,8 @@
     android:layout_width="match_parent">
 
     <!-- android:fitsSystemWindows="true" moves rootCoordinatorLayout below the system status bar.
-      When it is specified the theme should include <item name="android:windowTranslucentStatus">true</item>.
-      Setting the layout root to be focusableInTouchMode prevents urlTextBox from stealing focus on launch and opening the keyboard. -->
+        When it is specified the theme should include <item name="android:windowTranslucentStatus">true</item>.
+        Setting the layout root to be focusableInTouchMode prevents urlTextBox from stealing focus on launch and opening the keyboard. -->
     <android.support.design.widget.CoordinatorLayout
         android:id="@+id/rootCoordinatorLayout"
         xmlns:android="http://schemas.android.com/apk/res/android"
         </LinearLayout>
     </android.support.design.widget.CoordinatorLayout>
 
+    <!-- `fullScreenVideoFrameLayout` is used to display full screen videos.  It is initially `android:visibility="gone"` to hide it from view.
+        The `FrameLayout` needs to be before the `NavigationView` or touches on the navigation drawer will not work after exiting full screen video using the back button.-->
+    <FrameLayout
+        android:id="@+id/fullScreenVideoFrameLayout"
+        android:layout_width="match_parent"
+        android:layout_height="match_parent"
+        android:visibility="gone"
+        android:background="@color/black" />
+
     <!-- The navigation drawer. -->
     <android.support.design.widget.NavigationView
         android:id="@+id/navigationView"
         app:headerLayout="@layout/navigation_header"
         app:menu="@menu/webview_navigation_menu"
         app:itemIconTint="@color/blue_grey" />
-
-    <!-- fullScreenVideoFrameLayout is used to display full screen videos.  It is initially android:visibility="gone" to hide it from view. -->
-    <FrameLayout
-        android:id="@+id/fullScreenVideoFrameLayout"
-        android:layout_width="match_parent"
-        android:layout_height="match_parent"
-        android:visibility="gone"
-        android:background="@color/black" />
 </android.support.v4.widget.DrawerLayout>
\ No newline at end of file