<FrameLayout
android:id="@+id/containerMain"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:descendantFocusability="blocksDescendants">
<RelativeLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="10dp"
android:padding="10dp"
android:background="@drawable/rounded_corner_layout">
<TextView
android:id="@+id/title"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="18sp"
android:textStyle="italic|bold"
android:text="title"
android:textColor="@color/textColor"/>
<View
android:id="@+id/hline"
android:layout_below="@+id/title"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#ffe0e8ee"
android:layout_toLeftOf="@+id/switch_checkbox"
android:layout_toStartOf="@+id/switch_checkbox"/>
<TextView
android:id="@+id/location"
android:layout_below="@+id/hline"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Location"
android:textSize="14sp"
android:textColor="@color/textColor2"/>
<View
android:id="@+id/hline2"
android:layout_below="@+id/location"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#ffe0e8ee"
android:layout_toLeftOf="@+id/switch_checkbox"
android:layout_toStartOf="@+id/switch_checkbox"/>
<TextView
android:id="@+id/time"
android:layout_below="@+id/hline2"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="14sp"
android:text="time"
android:textColor="@color/textColor2"/>
<View
android:id="@+id/hline3"
android:layout_below="@+id/time"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#ffe0e8ee"
android:layout_toLeftOf="@+id/switch_checkbox"
android:layout_toStartOf="@+id/switch_checkbox"/>
<TextView
android:id="@+id/repeat"
android:layout_below="@+id/hline3"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="14sp"
android:text="Repeat after 5 hours"
android:textColor="@color/textColor2"/>
<RelativeLayout
android:id="@+id/switch_checkbox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginStart="10dp"
android:layout_centerVertical="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true">
<android.support.v7.widget.SwitchCompat
android:id="@+id/on_off"
android:layout_margin="10dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</RelativeLayout>
</RelativeLayout>
</FrameLayout>
No comments:
Post a Comment