comments.xml 2.2 KB
Newer Older
U
u014427391 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
	android:id="@id/comments_layout"
	android:layout_width="fill_parent"
	android:layout_height="fill_parent"
	android:background="@drawable/main_background"
	>
	<RelativeLayout
		android:id="@id/comments_titlebar_layout"
		android:layout_width="fill_parent"
		android:layout_height="40dp"
		android:background="@color/topbar_bg"
		android:layout_alignParentTop="true">
		<TextView
			android:id="@id/comments_titlebar_title"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:layout_marginLeft="20.0dip"
			android:layout_marginTop="10.0dip" 
			android:textSize="16.0sp"
			android:textColor="@color/white"
			android:text="评论"
			/>
		<Button
			android:id="@id/comments_titlebar_news"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:layout_alignParentRight="true"
			android:layout_marginRight="50.0dip"
			android:layout_marginTop="9.0dip"
			android:background="@color/topbar_bg"
			android:textColor="@color/white"
			android:textSize="14.0sp"
			android:text="新闻"
			/>
		<ProgressBar
			android:id="@id/comments_titlebar_progressbar"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:layout_marginLeft="10.0dip"
			android:layout_marginTop="18.0dip"
			android:visibility="gone"
			android:layout_toRightOf="@id/comments_titlebar_title"
			style="\?android:attr/progressBarStyleSmall" />
	</RelativeLayout>

	<ListView
	    android:id="@id/comments_list"
	    android:layout_width="fill_parent"
	    android:layout_height="wrap_content"
	    android:layout_above="@id/comments_reply_frame"
	    android:layout_below="@id/comments_titlebar_layout"
	    android:cacheColorHint="#00000000"
	    android:divider="@drawable/list_separator_line"
	    android:drawSelectorOnTop="false"
	    android:fadingEdge="none"
	    android:listSelector="@drawable/newslist_item_selector"
	    android:scrollbars="none" />

	<include
		android:id="@id/comments_reply_frame"
		android:layout_width="fill_parent"
		android:layout_height="wrap_content"
		android:layout_alignParentBottom="true"
		layout="@layout/reply_frame" />
</RelativeLayout>