Просмотр исходного кода

android: Disable focus for the root of cards that contain buttons

t895 2 лет назад
Родитель
Сommit
91636deaaf

+ 1 - 0
src/android/app/src/main/res/layout/card_driver_option.xml

@@ -23,6 +23,7 @@
             android:layout_width="wrap_content"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_height="wrap_content"
             android:layout_gravity="center_vertical"
             android:layout_gravity="center_vertical"
+            android:focusable="false"
             android:clickable="false"
             android:clickable="false"
             android:checked="false" />
             android:checked="false" />
 
 

+ 2 - 4
src/android/app/src/main/res/layout/card_folder.xml

@@ -6,16 +6,14 @@
     android:layout_width="match_parent"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
     android:layout_height="wrap_content"
     android:layout_marginHorizontal="16dp"
     android:layout_marginHorizontal="16dp"
-    android:layout_marginVertical="12dp"
-    android:focusable="true">
+    android:layout_marginVertical="12dp">
 
 
     <androidx.constraintlayout.widget.ConstraintLayout
     <androidx.constraintlayout.widget.ConstraintLayout
         android:layout_width="match_parent"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_height="wrap_content"
         android:orientation="horizontal"
         android:orientation="horizontal"
         android:padding="16dp"
         android:padding="16dp"
-        android:layout_gravity="center_vertical"
-        android:animateLayoutChanges="true">
+        android:layout_gravity="center_vertical">
 
 
         <com.google.android.material.textview.MaterialTextView
         <com.google.android.material.textview.MaterialTextView
             android:id="@+id/path"
             android:id="@+id/path"

+ 1 - 1
src/android/app/src/main/res/layout/list_item_addon.xml

@@ -6,7 +6,7 @@
     android:layout_width="match_parent"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
     android:layout_height="wrap_content"
     android:background="?attr/selectableItemBackground"
     android:background="?attr/selectableItemBackground"
-    android:focusable="true"
+    android:focusable="false"
     android:paddingHorizontal="20dp"
     android:paddingHorizontal="20dp"
     android:paddingVertical="16dp">
     android:paddingVertical="16dp">
 
 

+ 1 - 0
src/android/app/src/main/res/layout/list_item_settings_header.xml

@@ -12,4 +12,5 @@
     android:textAlignment="viewStart"
     android:textAlignment="viewStart"
     android:textColor="?attr/colorPrimary"
     android:textColor="?attr/colorPrimary"
     android:textStyle="bold"
     android:textStyle="bold"
+    android:focusable="false"
     tools:text="CPU Settings" />
     tools:text="CPU Settings" />