|
@@ -0,0 +1,39 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ xmlns:tools="http://schemas.android.com/tools"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:minHeight="40dp"
|
|
|
+ >
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/item_title"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="20dp"
|
|
|
+ android:layout_marginTop="2dp"
|
|
|
+ android:layout_marginBottom="2dp"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:layout_alignParentStart="true"
|
|
|
+ android:textAlignment="center"
|
|
|
+ android:fontFamily="Roboto"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="13sp" />
|
|
|
+
|
|
|
+ <Switch
|
|
|
+ android:id="@+id/item_switch"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_alignParentEnd="true"
|
|
|
+ android:layout_marginEnd="14dp"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:thumb="@drawable/selector_switch_thumb"
|
|
|
+ android:track="@drawable/selector_switch_track">
|
|
|
+ </Switch>
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+</LinearLayout>
|