Skip to content

Instantly share code, notes, and snippets.

@jddeep
Created May 9, 2019 10:43
Show Gist options
  • Save jddeep/46b5b74f24f8e1301dedd69ffb0c20da to your computer and use it in GitHub Desktop.
Save jddeep/46b5b74f24f8e1301dedd69ffb0c20da to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:layout_height="match_parent"
android:layout_width="match_parent"
android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" >
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:elevation="10dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="10dp">
<CheckBox
android:id="@+id/cbItemCheck"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:focusable="false"
android:paddingEnd="20dp" />
<TextView
android:id="@+id/tvItem"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/cbItemCheck"
android:layout_alignBottom="@+id/cbItemCheck"
android:layout_toEndOf="@+id/cbItemCheck"
android:fontFamily="sans-serif"
android:padding="4dip"
android:textColor="@android:color/black"
android:textSize="18sp" />
<TextView
android:id="@+id/tvItemPriority"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/tvItem"
android:layout_alignParentEnd="true"
android:fontFamily="sans-serif"
android:padding="4dip"
android:textColor="@color/colorPrimary"
android:textSize="16sp"
tools:ignore="RelativeOverlap" />
<TextView
android:id="@+id/tvDueDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/tvItem"
android:layout_toEndOf="@+id/cbItemCheck"
android:fontFamily="sans-serif"
android:padding="2dip"
android:textColor="#808080"
android:textSize="12sp"
android:textStyle="italic" />
</RelativeLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment