blob: 0797e930767f3cfdc0b16b4a332c2d84dbbaa676 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/swipe_right"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#4CAF50"
android:layout_marginBottom="1dp"
android:visibility="gone">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_done_all_black_24dp"
android:layout_gravity="center_vertical"
android:layout_margin="@dimen/fab_margin"/>
</LinearLayout>
<LinearLayout
android:id="@+id/swipe_left"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#F44336"
android:layout_marginBottom="1dp"
android:gravity="right"
android:visibility="gone">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_delete_sweep_black_24dp"
android:layout_gravity="center_vertical"
android:layout_margin="@dimen/fab_margin"/>
</LinearLayout>
<android.support.v7.widget.CardView android:id="@+id/card"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:layout_marginBottom="1dp"
card_view:cardElevation="1dp"
card_view:cardBackgroundColor="#DDDDFF"
card_view:cardCornerRadius="0dp">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView android:id="@+id/todo_list_name"
android:layout_width="fill_parent"
android:layout_weight = "1"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:textStyle="bold"
android:textSize="22sp"
android:textColor="#000000"
android:layout_margin="5dp" />
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight = "1">
<TextView android:id="@+id/todo_list_completed"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:textSize="12sp"
android:textColor="#333333"
android:layout_margin="5dp" />
<TextView android:id="@+id/todo_list_time"
android:layout_width="0dp"
android:layout_weight="2"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:textSize="12sp"
android:textColor="#333333"
android:layout_margin="5dp" />
</LinearLayout>
</LinearLayout>
</android.support.v7.widget.CardView>
</FrameLayout>