Skip to content

Instantly share code, notes, and snippets.

@ejcer
Created September 6, 2014 19:39
Show Gist options
  • Save ejcer/715fbbc4d004439f3007 to your computer and use it in GitHub Desktop.
Save ejcer/715fbbc4d004439f3007 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" >
<ImageView
android:id="@+id/profilePicture"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_alignParentBottom="true"
android:layout_alignParentTop="true"
android:layout_marginRight="6dip"
android:contentDescription="TODO"
android:src="@drawable/ic_launcher" />
<TextView
android:id="@+id/nameLine"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_toRightOf="@+id/icon"
android:gravity="center_vertical"
android:text="Name"
android:textSize="16sp" />
<TextView
android:id="@+id/ContributionLine"
android:layout_width="fill_parent"
android:layout_height="26dip"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_toRightOf="@id/icon"
android:ellipsize="marquee"
android:singleLine="true"
android:text="Today's contributions"
android:textSize="12sp" />
<TextView
android:id="@+id/numberOfContributions"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="2"
android:layout_marginRight="20dip" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment