Cleaned up posts list items

I also created header.xml, a reusable resource for displaying an avatar,
title, user name, and time stamp.

I also renamed some view id's to be more developer friendly

Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
2012-10-21 00:19:38 -04:00
parent 415b6f24fa
commit b2f00849a2
9 changed files with 92 additions and 105 deletions

View File

@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<QuickContactBadge
android:id="@+id/quickContactBadge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:orientation="vertical"
android:gravity="right" >
<TextView
android:id="@+id/textView_user"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/user"
android:textAppearance="?android:attr/textAppearanceSmall" />
<TextView
android:id="@+id/textView_date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/date"
android:textAppearance="?android:attr/textAppearanceSmall" />
</LinearLayout>
<TextView
android:id="@+id/textView_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_toRightOf="@+id/quickContactBadge"
android:paddingLeft="5dip"
android:text="@string/title"
android:gravity="center"
android:textAppearance="?android:attr/textAppearanceLarge" />
</RelativeLayout>
<View
android:id="@+id/firstDivider"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="#0099CC"
android:padding="10dip" />
</LinearLayout>