|
|
@@ -3,25 +3,18 @@
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:minHeight="72dp"
|
|
|
android:background="?android:attr/selectableItemBackground"
|
|
|
+ android:clickable="true"
|
|
|
android:focusable="true"
|
|
|
- android:clickable="true">
|
|
|
+ android:minHeight="72dp">
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/text_setting_name"
|
|
|
- style="@style/TextAppearance.AppCompat.Headline"
|
|
|
- android:layout_width="0dp"
|
|
|
+ <com.google.android.material.materialswitch.MaterialSwitch
|
|
|
+ android:id="@+id/switch_widget"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_alignParentStart="true"
|
|
|
- android:layout_alignParentTop="true"
|
|
|
- android:layout_marginEnd="@dimen/spacing_large"
|
|
|
- android:layout_marginStart="@dimen/spacing_large"
|
|
|
- android:layout_marginTop="@dimen/spacing_large"
|
|
|
- android:layout_toStartOf="@+id/checkbox"
|
|
|
- android:textColor="@color/header_text"
|
|
|
- android:textSize="16sp"
|
|
|
- tools:text="@string/frame_limit_enable" />
|
|
|
+ android:layout_alignParentEnd="true"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_marginEnd="24dp" />
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/text_setting_description"
|
|
|
@@ -34,19 +27,22 @@
|
|
|
android:layout_marginEnd="@dimen/spacing_large"
|
|
|
android:layout_marginStart="@dimen/spacing_large"
|
|
|
android:layout_marginTop="@dimen/spacing_small"
|
|
|
- android:layout_toStartOf="@+id/checkbox"
|
|
|
+ android:layout_toStartOf="@+id/switch_widget"
|
|
|
android:textAlignment="textStart"
|
|
|
- android:textColor="@color/header_subtext"
|
|
|
tools:text="@string/frame_limit_enable_description" />
|
|
|
|
|
|
- <CheckBox
|
|
|
- android:id="@+id/checkbox"
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ <TextView
|
|
|
+ style="@style/TextAppearance.Material3.HeadlineMedium"
|
|
|
+ android:id="@+id/text_setting_name"
|
|
|
+ android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_alignParentEnd="true"
|
|
|
- android:layout_centerVertical="true"
|
|
|
+ android:layout_alignParentStart="true"
|
|
|
+ android:layout_alignParentTop="true"
|
|
|
android:layout_marginEnd="@dimen/spacing_large"
|
|
|
- android:focusable="false"
|
|
|
- android:clickable="false" />
|
|
|
+ android:layout_marginStart="@dimen/spacing_large"
|
|
|
+ android:layout_marginTop="@dimen/spacing_large"
|
|
|
+ android:layout_toStartOf="@+id/switch_widget"
|
|
|
+ android:textSize="16sp"
|
|
|
+ tools:text="@string/frame_limit_enable" />
|
|
|
|
|
|
-</RelativeLayout>
|
|
|
+</RelativeLayout>
|