summaryrefslogblamecommitdiffstats
path: root/src/android/app/src/main/res/layout/list_item_setting_switch.xml
blob: a5767adee11790b8c9e22e569c52669b82946db6 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                                          
                                                       


                                                  
                                                               
                            
                            
                            
                                                  
                                               
                              
 


                                                              
                                            
                                            
                                               
 

                                           
                                            
                                            
                                            
                                                       
                                                     






















                                                                  
 
                 
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="?android:attr/selectableItemBackground"
    android:clickable="true"
    android:focusable="true"
    android:minHeight="72dp"
    android:paddingVertical="@dimen/spacing_large"
    android:paddingStart="@dimen/spacing_large"
    android:paddingEnd="24dp">

    <com.google.android.material.materialswitch.MaterialSwitch
        android:id="@+id/switch_widget"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentEnd="true"
        android:layout_centerVertical="true" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:layout_centerVertical="true"
        android:layout_marginEnd="@dimen/spacing_large"
        android:layout_toStartOf="@+id/switch_widget"
        android:gravity="center_vertical"
        android:orientation="vertical">

        <com.google.android.material.textview.MaterialTextView
            android:id="@+id/text_setting_name"
            style="@style/TextAppearance.Material3.HeadlineMedium"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textAlignment="viewStart"
            android:textSize="16sp"
            app:lineHeight="28dp"
            tools:text="@string/frame_limit_enable" />

        <com.google.android.material.textview.MaterialTextView
            android:id="@+id/text_setting_description"
            style="@style/TextAppearance.Material3.BodySmall"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/spacing_small"
            android:textAlignment="viewStart"
            tools:text="@string/frame_limit_enable_description" />

    </LinearLayout>

</RelativeLayout>