Browse Source

Ensure ActionToolbars don't overlap snackbars or FABs

arkon 5 years ago
parent
commit
0eb61f34f6

+ 2 - 1
app/src/main/res/layout/chapters_controller.xml

@@ -47,7 +47,8 @@
         android:id="@+id/action_toolbar"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:layout_gravity="bottom" />
+        android:layout_gravity="bottom"
+        app:layout_dodgeInsetEdges="bottom" />
 
     <com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
         android:id="@+id/fab"

+ 3 - 1
app/src/main/res/layout/library_controller.xml

@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
     android:layout_width="match_parent"
     android:layout_height="match_parent">
 
@@ -12,7 +13,8 @@
         android:id="@+id/action_toolbar"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:layout_gravity="bottom" />
+        android:layout_gravity="bottom"
+        app:layout_dodgeInsetEdges="bottom" />
 
     <eu.kanade.tachiyomi.widget.EmptyView
         android:id="@+id/empty_view"

+ 3 - 1
app/src/main/res/layout/updates_controller.xml

@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <eu.kanade.tachiyomi.widget.ThemedSwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
     xmlns:tools="http://schemas.android.com/tools"
     android:id="@+id/swipe_refresh"
     android:layout_width="match_parent"
@@ -22,7 +23,8 @@
             android:id="@+id/action_toolbar"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
-            android:layout_gravity="bottom" />
+            android:layout_gravity="bottom"
+            app:layout_dodgeInsetEdges="bottom" />
 
         <eu.kanade.tachiyomi.widget.EmptyView
             android:id="@+id/empty_view"