Cleaned up topic list items
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<manifest package="org.RickBarrette.osj.forum"
|
<manifest package="org.RickBarrette.osj.forum"
|
||||||
android:versionCode="1345"
|
android:versionCode="1349"
|
||||||
android:versionName="1.0" xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto">
|
android:versionName="1.0" xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto">
|
||||||
|
|
||||||
<uses-sdk
|
<uses-sdk
|
||||||
|
|||||||
@@ -1,55 +1,80 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?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_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
android:padding="5dip" >
|
android:padding="5dip" >
|
||||||
|
|
||||||
<QuickContactBadge
|
<RelativeLayout
|
||||||
android:id="@+id/quickContactBadge1"
|
android:layout_width="match_parent"
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentLeft="true"
|
android:padding="5dip" >
|
||||||
android:layout_centerVertical="true"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<TextView
|
<QuickContactBadge
|
||||||
android:id="@+id/textView1"
|
android:id="@+id/quickContactBadge1"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentLeft="true" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/textView1"
|
||||||
|
android:paddingLeft="5dip"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentRight="true"
|
||||||
|
android:layout_alignParentTop="true"
|
||||||
|
android:layout_toRightOf="@+id/quickContactBadge1"
|
||||||
|
android:text="@string/title"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/textView5"
|
||||||
|
android:layout_below="@id/textView1"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentRight="true"
|
||||||
|
android:text="@string/date"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/textView3"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentRight="true"
|
||||||
|
android:layout_below="@+id/textView5"
|
||||||
|
android:text="@string/user"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/firstDivider"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="2dp"
|
||||||
|
android:background="#0099CC"
|
||||||
|
android:padding="10dip" />
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentRight="true"
|
>
|
||||||
android:layout_alignParentTop="true"
|
|
||||||
android:layout_toRightOf="@+id/quickContactBadge1"
|
|
||||||
android:text="@string/title"
|
|
||||||
android:textAppearance="?android:attr/textAppearanceLarge" />
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/textView2"
|
android:id="@+id/textView2"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignLeft="@+id/textView1"
|
android:layout_below="@id/firstDivider"
|
||||||
android:layout_alignParentRight="true"
|
android:text="@string/latest_post"
|
||||||
android:layout_below="@+id/textView1"
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||||
android:text="@string/latest_post"
|
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/textView3"
|
android:id="@+id/textView4"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_below="@+id/textView2"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_below="@+id/textView2"
|
||||||
android:layout_toRightOf="@+id/quickContactBadge1"
|
android:text="@string/new_posts"
|
||||||
android:text="@string/user"
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||||
android:textAppearance="?android:attr/textAppearanceSmall" />
|
android:visibility="gone" />
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
<TextView
|
</LinearLayout>
|
||||||
android:id="@+id/textView4"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_below="@+id/textView2"
|
|
||||||
android:layout_alignParentRight="true"
|
|
||||||
android:text="@string/new_posts"
|
|
||||||
android:visibility="gone"
|
|
||||||
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
||||||
|
|
||||||
</RelativeLayout>
|
|
||||||
@@ -16,4 +16,5 @@
|
|||||||
<string name="osj_server">https://oceanstatejeepsters.ipower.com/forum/mobiquo/mobiquo.php</string>
|
<string name="osj_server">https://oceanstatejeepsters.ipower.com/forum/mobiquo/mobiquo.php</string>
|
||||||
<string name="legal">Legal</string>
|
<string name="legal">Legal</string>
|
||||||
<string name="deleteing">Deleteing</string>
|
<string name="deleteing">Deleteing</string>
|
||||||
|
<string name="date">Date</string>
|
||||||
</resources>
|
</resources>
|
||||||
@@ -44,6 +44,7 @@ public class TopicAdapter extends BaseAdapter {
|
|||||||
TextView user;
|
TextView user;
|
||||||
TextView newPosts;
|
TextView newPosts;
|
||||||
QuickContactBadge badage;
|
QuickContactBadge badage;
|
||||||
|
TextView date;
|
||||||
}
|
}
|
||||||
|
|
||||||
private final LayoutInflater mInflater;
|
private final LayoutInflater mInflater;
|
||||||
@@ -115,6 +116,7 @@ public class TopicAdapter extends BaseAdapter {
|
|||||||
holder.user = (TextView) convertView.findViewById(R.id.textView3);
|
holder.user = (TextView) convertView.findViewById(R.id.textView3);
|
||||||
holder.newPosts = (TextView) convertView.findViewById(R.id.textView4);
|
holder.newPosts = (TextView) convertView.findViewById(R.id.textView4);
|
||||||
holder.badage = (QuickContactBadge) convertView.findViewById(R.id.quickContactBadge1);
|
holder.badage = (QuickContactBadge) convertView.findViewById(R.id.quickContactBadge1);
|
||||||
|
holder.date = (TextView) convertView.findViewById(R.id.textView5);
|
||||||
|
|
||||||
convertView.setTag(holder);
|
convertView.setTag(holder);
|
||||||
} else
|
} else
|
||||||
@@ -133,6 +135,7 @@ public class TopicAdapter extends BaseAdapter {
|
|||||||
holder.newPosts.setVisibility(Boolean.parseBoolean((String) getItem(position).get("new_post")) ? View.VISIBLE : View.GONE);
|
holder.newPosts.setVisibility(Boolean.parseBoolean((String) getItem(position).get("new_post")) ? View.VISIBLE : View.GONE);
|
||||||
holder.badage.setImageResource(R.drawable.ic_launcher);
|
holder.badage.setImageResource(R.drawable.ic_launcher);
|
||||||
holder.badage.setTag("http://www.gravatar.com/avatar/9b4f3d34ca3ce31198efac149c3a1ca2?s=300&d=identicon&r=PG");
|
holder.badage.setTag("http://www.gravatar.com/avatar/9b4f3d34ca3ce31198efac149c3a1ca2?s=300&d=identicon&r=PG");
|
||||||
|
holder.date.setText((String) getItem(position).get("last_reply_time"));
|
||||||
|
|
||||||
return convertView;
|
return convertView;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user