<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:layout_width="match_parent"
                android:layout_height="match_parent">

    <ListView
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:id="@+id/messages_list_view"
        android:layout_alignParentTop="true"
        android:layout_alignParentLeft="true"
        android:layout_alignParentBottom="true"
        android:clipToPadding="false"
        android:fadingEdge="none"
        android:divider="@drawable/messages_list_divider"
        android:dividerHeight="1px"
        android:fadingEdgeLength="0dp"
        android:verticalScrollbarPosition="left"/>

    <TextView android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:textColor="#808080"
        android:gravity="center"
        android:textSize="24dp"
        android:id="@+id/searchEmptyView"
        android:visibility="invisible"/>

    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:id="@+id/list_empty_view"
        android:layout_centerInParent="true"
        android:orientation="vertical"
        android:gravity="center"
        android:visibility="gone">

        <TextView android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:textColor="#959595"
            android:textSize="24dp"
            android:gravity="center"
            android:id="@+id/list_empty_view_text1"/>

        <TextView android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:textColor="#959595"
            android:gravity="center"
            android:textSize="15dp"
            android:paddingTop="6dp"
            android:lineSpacingExtra="2dp"
            android:id="@+id/list_empty_view_text2"/>

    </LinearLayout>

    <LinearLayout
        android:id="@+id/progressLayout"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:gravity="center"
        android:orientation="vertical"
        android:visibility="gone" >

        <ProgressBar
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" >
        </ProgressBar>
    </LinearLayout>
</RelativeLayout>
