Skip to content

Instantly share code, notes, and snippets.

@caseycrites
Created June 12, 2012 20:42
Show Gist options
  • Select an option

  • Save caseycrites/2920007 to your computer and use it in GitHub Desktop.

Select an option

Save caseycrites/2920007 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="?android:attr/listPreferredItemHeight"
android:padding="6dip" >
<LinearLayout
android:id="@+id/unread_indicator"
android:layout_width="4dp"
android:layout_height="fill_parent"
android:layout_alignParentLeft="true"
/>
<CheckBox
android:id="@+id/message_checkbox"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_toRightOf="@id/unread_indicator"
android:layout_centerVertical="true"
/>
<TextView
android:id="@+id/date_sent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
/>
<TextView
android:id="@+id/title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignTop="@id/message_checkbox"
android:layout_toRightOf="@id/message_checkbox"
android:layout_toLeftOf="@id/date_sent"
/>
<TextView
android:id="@+id/message"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignBottom="@id/message_checkbox"
android:layout_toRightOf="@id/message_checkbox"
android:singleLine="true"
android:ellipsize="end"
/>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment