Skip to content

Instantly share code, notes, and snippets.

@maxme
Created February 23, 2015 13:13
Show Gist options
  • Save maxme/353cf725ccadb77d9561 to your computer and use it in GitHub Desktop.
Save maxme/353cf725ccadb77d9561 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="match_parent"
android:layout_height="match_parent"
android:paddingLeft="24dp"
android:paddingRight="16dp">
<View
android:background="@android:color/holo_red_dark"
android:id="@+id/my_site_list_row_empty_icon"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
/>
<TextView
android:id="@+id/my_site_list_row_text_view"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:ellipsize="end"
android:maxLines="1"
android:text="Visit my Cool Visit my Cool Visit my Cool Visit my Cool"
android:layout_toLeftOf="@id/my_site_list_row_add_button"
android:layout_toRightOf="@id/my_site_list_row_empty_icon"
/>
<Button
android:id="@+id/my_site_list_row_add_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:minHeight="0dp"
android:minWidth="0dp"
android:text="Add"
/>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment