<?xml version="1.0" encoding="utf-8"?>
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:background="@color/common_bg"
|
android:orientation="vertical" >
|
<com.videogo.widget.TitleBar
|
android:id="@+id/title_bar"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content" />
|
|
<com.videogo.widget.pulltorefresh.PullToRefreshListView
|
android:id="@+id/message_list"
|
style="@style/CommonListView"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_below="@id/title_bar" />
|
|
<FrameLayout
|
android:id="@+id/no_message_layout"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_below="@id/title_bar"
|
android:visibility="gone" >
|
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center"
|
android:src="@drawable/nomessage"
|
android:text="@string/message_no_data_text" />
|
</FrameLayout>
|
|
<LinearLayout
|
android:id="@+id/refresh_layout"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_below="@id/title_bar"
|
android:gravity="center"
|
android:orientation="vertical"
|
android:visibility="gone" >
|
|
<TextView
|
android:id="@+id/refresh_tip"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="20dp"
|
android:gravity="center"
|
android:text="@string/message_refresh_fail_network_exception"
|
android:textSize="@dimen/title_text_size" />
|
|
<LinearLayout
|
android:id="@+id/refresh_button"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="20dp"
|
android:layout_marginRight="20dp"
|
android:background="@drawable/refresh_selector"
|
android:gravity="center" >
|
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginRight="5dp"
|
android:background="@drawable/camera_list_refresh"
|
android:contentDescription="@string/refresh" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@string/refresh"
|
android:textColor="@color/black_text"
|
android:textSize="@dimen/title_text_size" />
|
</LinearLayout>
|
</LinearLayout>
|
|
</RelativeLayout>
|