<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation='vertical'
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/body_background"
>
<!-- Header -->
<include layout="@layout/header"/>
<!-- Main content area. -->
<com.ch_linghu.fanfoudroid.ui.module.MyListView
android:id="@+id/tweet_list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:cacheColorHint="#00000000"
android:fadeScrollbars="false"
android:divider="@drawable/dashed_line"
android:dividerHeight="1dip"
android:fastScrollEnabled="false"
/>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="50dp"
android:padding="0dp"
android:background="@drawable/maintab_toolbar_bg">
<Button
android:id="@+id/inbox"
android:background="@drawable/iphone_button_selector"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:scaleType="center"
android:text="收信箱"
android:textColor="#FFF"
android:textSize="15sp"
/>
<Button
android:id="@+id/sendbox"
android:background="@drawable/iphone_button_selector"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:scaleType="center"
android:text="发信箱"
android:textColor="#FFF"
android:textSize="15sp"
/>
<Button
android:id="@+id/new_message"
android:background="@drawable/iphone_button_selector"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:scaleType="center"
android:text="撰写"
android:textColor="#FFF"
android:textSize="15sp"
/>
</LinearLayout>
<!-- 提示栏 -->
<TextView
android:id="@+id/progress_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:visibility="gone"
/>
</LinearLayout>
header.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- 顶部条 -->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayout01"
android:layout_width="fill_parent"
android:layout_height="47dp"
android:background="@drawable/bg_header"
android:gravity="center_vertical"
android:layout_alignParentTop="true"
>
<!-- title -->
<TextView android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginTop="12dp"
android:layout_marginLeft="3dp"
android:background="@null"
android:clickable="true"
style="@style/logo_button"
/>
<!-- 搜索按钮 -->
<ImageButton android:id="@+id/search"
android:background="@null"
android:src="@drawable/top_search_selector"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_alignParentRight="true"
android:paddingRight="10dip"
android:paddingLeft="10dip"
/>
<!-- 发布消息按钮 -->
<ImageButton android:id="@+id/writeMessage"
android:background="@null"
android:src="@drawable/top_msg_selector"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_toLeftOf="@id/search"
android:paddingRight="10dip"
android:paddingLeft="10dip"
/>
<!-- 刷新按钮 -->
<ImageButton android:id="@+id/top_refresh"
android:background="@null"
android:src="@drawable/top_refresh_selector"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_toLeftOf="@id/writeMessage"
android:paddingRight="10dip"
android:paddingLeft="10dip"
/>
<!-- 旋转 -->
<ProgressBar
android:id="@+id/top_refresh_progressBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toLeftOf="@id/top_refresh"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true"
style="?android:progressBarStyleSmall"
android:visibility="gone"
/>
<!-- 刷新按钮, 旋转效果
<ImageView
android:id="@+id/top_refresh"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toLeftOf="@id/writeMessage"
android:layout_centerVertical="true"
android:background="#000"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"
/>
-->
<!-- 刷新效果测试代码
<ProgressBar
android:id="@+id/temp_id1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toLeftOf="@id/top_refresh"
android:layout_centerVertical="true"
style="?android:progressBarStyleSmall"
/>
<ProgressBar
android:layout_width="32dip"
android:layout_height="32dip"
android:layout_toLeftOf="@id/temp_id1"
android:layout_centerVertical="true"
style="@style/refreshProgressBar"
/>
-->
<!-- Global Progress Bar -->
<ProgressBar
android:id="@+id/progress_bar"
android:layout_width="fill_parent"
android:layout_height="2dip"
android:layout_alignParentBottom="true"
style="@style/gProgressBar.Horizontal"
/>
</RelativeLayout>