Browse Source

Fix some views being click-through-able

arkon 3 years ago
parent
commit
fe3b36caeb

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

@@ -78,7 +78,9 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_gravity="bottom"
+        android:clickable="true"
         app:layout_insetEdge="bottom"
-        app:menu="@menu/main_nav" />
+        app:menu="@menu/main_nav"
+        tools:ignore="KeyboardInaccessibleWidget" />
 
 </androidx.coordinatorlayout.widget.CoordinatorLayout>

+ 6 - 2
app/src/main/res/layout/reader_activity.xml

@@ -97,8 +97,10 @@
                     android:layout_height="match_parent"
                     android:layout_weight="1"
                     android:background="@drawable/reader_seekbar_background"
+                    android:clickable="true"
                     android:paddingStart="8dp"
-                    android:paddingEnd="8dp">
+                    android:paddingEnd="8dp"
+                    tools:ignore="KeyboardInaccessibleWidget">
 
                     <TextView
                         android:id="@+id/left_page_text"
@@ -150,7 +152,9 @@
                 android:layout_width="match_parent"
                 android:layout_height="?attr/actionBarSize"
                 android:layout_gravity="bottom"
-                android:background="?attr/colorToolbar">
+                android:background="?attr/colorToolbar"
+                android:clickable="true"
+                tools:ignore="KeyboardInaccessibleWidget">
 
                 <ImageButton
                     android:id="@+id/action_reading_mode"