activity_new_conversation.xml

 1<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
 2    xmlns:tools="http://schemas.android.com/tools"
 3    android:layout_width="match_parent"
 4    android:layout_height="match_parent"
 5    android:background="#e5e5e5" >
 6
 7    
 8    <ProgressBar
 9        android:id="@+id/progressBar1"
10        style="?android:attr/progressBarStyleLarge"
11        android:layout_width="wrap_content"
12        android:layout_height="wrap_content"
13        android:layout_centerInParent="true"
14        android:visibility="gone"
15       />
16    
17    <EditText
18        android:id="@+id/new_conversation_search"
19        android:layout_width="wrap_content"
20        android:layout_height="wrap_content"
21        android:layout_alignParentLeft="true"
22        android:layout_alignParentRight="true"
23        android:layout_alignParentTop="true"
24        android:background="#eee"
25        android:ems="10"
26        android:hint="@string/search_jabber_id"
27        android:inputType="textEmailAddress"
28        android:paddingBottom="12dp"
29        android:paddingLeft="8dp"
30        android:paddingRight="8dp"
31        android:paddingTop="12dp" />
32    
33    <TextView
34                android:id="@+id/contacts_header"
35                android:layout_width="wrap_content"
36                android:layout_height="wrap_content"
37                android:text="Contacts"
38                style="@style/sectionHeader"
39                android:layout_below="@+id/new_conversation_search"
40                android:paddingLeft="8dp"
41                android:paddingTop="8dp"
42                android:paddingRight="8dp"/>
43
44    <ListView
45        android:id="@+id/contactList"
46        android:layout_width="fill_parent"
47        android:layout_height="fill_parent"
48        android:layout_alignParentBottom="true"
49        android:layout_alignParentLeft="true"
50        android:layout_alignParentRight="true"
51        android:layout_below="@+id/contacts_header"
52        tools:listitem="@layout/contact"
53        android:choiceMode="multipleChoice">
54
55    </ListView>
56</RelativeLayout>