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

@@ -1,46 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="5dip"
>
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="5dip" >
<include layout="@layout/header" />
<TextView
android:id="@+id/textView1"
android:id="@+id/textView_post"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_toRightOf="@+id/quickContactBadge1"
android:gravity="center_horizontal"
android:text="@string/title"
android:textAppearance="?android:attr/textAppearanceLarge" />
<QuickContactBadge
android:id="@+id/quickContactBadge1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
/>
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_below="@+id/quickContactBadge1"
android:layout_marginTop="15dp"
android:text="@string/post" />
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/textView3"
android:layout_alignLeft="@+id/textView1"
android:text="@string/user"
android:textAppearance="?android:attr/textAppearanceMedium" />
</RelativeLayout>
</LinearLayout>