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="#f9f9f9">
 6
 7    <EditText
 8        android:id="@+id/new_conversation_search"
 9        android:layout_width="wrap_content"
10        android:layout_height="wrap_content"
11        android:layout_alignParentLeft="true"
12        android:layout_alignParentRight="true"
13        android:layout_alignParentTop="true"
14        android:ems="10"
15        android:inputType="textEmailAddress"
16        android:hint="Search or enter Jabber ID"
17        android:background="#ffffff"
18        android:layout_marginTop="12dp"
19        android:layout_marginBottom="12dp"
20        android:layout_marginLeft="8dp"
21        android:layout_marginRight="8dp"/>
22
23    <ScrollView
24        android:id="@+id/scrollView1"
25        android:layout_width="fill_parent"
26        android:layout_height="fill_parent"
27        android:layout_alignParentBottom="true"
28        android:layout_alignParentLeft="true"
29        android:layout_alignParentRight="true"
30        android:layout_below="@+id/new_conversation_search"
31        android:background="#e5e5e5" >
32
33        <LinearLayout
34            android:layout_width="match_parent"
35            android:layout_height="380dp"
36            android:orientation="vertical"
37            android:padding="8dp" >
38
39            <TextView
40                android:id="@+id/phone_contacts_header"
41                android:layout_width="wrap_content"
42                android:layout_height="wrap_content"
43                android:text="Phone Contacts"
44                style="@style/sectionHeader"/>
45            <LinearLayout
46                android:id="@+id/phone_contacts"
47                android:layout_height="fill_parent"
48                android:layout_width="fill_parent"
49                android:orientation="vertical">
50                
51            </LinearLayout>
52            <TextView
53                android:id="@+id/jabber_contacts_header"
54                android:layout_width="wrap_content"
55                android:layout_height="wrap_content"
56                android:text="Jabber Contacts"
57                style="@style/sectionHeader"/>
58            <LinearLayout
59                android:id="@+id/jabber_contacts"
60                android:layout_height="fill_parent"
61                android:layout_width="fill_parent"
62                android:orientation="vertical">
63                
64            </LinearLayout>
65            <TextView
66                android:id="@+id/new_contact_header"
67                android:layout_width="wrap_content"
68                android:layout_height="wrap_content"
69                android:text="create new contact"
70                style="@style/sectionHeader"
71                android:visibility="gone"/>
72            <LinearLayout
73                android:id="@+id/create_new_contact"
74                android:layout_height="fill_parent"
75                android:layout_width="fill_parent"
76                android:orientation="vertical"
77                android:visibility="gone">
78                
79            </LinearLayout>
80        </LinearLayout>
81    </ScrollView>
82</RelativeLayout>