activity_muc_details.xml

  1<?xml version="1.0" encoding="utf-8"?>
  2<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  3    android:layout_width="match_parent"
  4    android:layout_height="match_parent"
  5    android:background="#e5e5e5">
  6
  7<LinearLayout
  8    android:layout_width="wrap_content"
  9    android:layout_height="wrap_content"
 10    android:orientation="vertical" >
 11     <TextView
 12        style="@style/sectionHeader"
 13        android:layout_width="wrap_content"
 14        android:layout_height="wrap_content"
 15        android:padding="8dp"
 16        android:text="@string/muc_details_conference" />
 17       <RelativeLayout
 18        android:layout_width="match_parent"
 19        android:layout_height="wrap_content"
 20        android:background="#eee" >
 21        
 22
 23        <EditText
 24            android:id="@+id/muc_subject"
 25            android:layout_width="wrap_content"
 26            android:layout_height="48dp"
 27            android:layout_alignParentLeft="true"
 28            android:layout_toLeftOf="@+id/muc_edit_subject"
 29            android:background="#eee"
 30            android:ems="10"
 31            android:hint="@string/muc_details_conference_subject"
 32            android:inputType="textAutoComplete"
 33            android:paddingBottom="12dp"
 34            android:paddingLeft="8dp"
 35            android:paddingRight="8dp"
 36            android:paddingTop="12dp" />
 37
 38        <ImageButton
 39            android:id="@+id/muc_edit_subject"
 40            android:layout_width="48dp"
 41            android:layout_height="48dp"
 42            android:layout_alignParentRight="true"
 43            android:layout_alignParentTop="true"
 44            android:layout_centerVertical="true"
 45            android:background="?android:selectableItemBackground"
 46            android:padding="8dp"
 47            android:src="@drawable/ic_action_edit" />
 48    </RelativeLayout>
 49    <TextView
 50        android:id="@+id/muc_jabberid"
 51        android:layout_width="wrap_content"
 52        android:layout_height="wrap_content"
 53        android:padding="8dp"
 54        android:singleLine="true"
 55        android:textColor="#5b5b5b"
 56        android:textSize="18sp"/>
 57
 58    <TextView
 59        style="@style/sectionHeader"
 60        android:layout_width="wrap_content"
 61        android:layout_height="wrap_content"
 62        android:paddingLeft="8dp"
 63        android:paddingRight="8dp"
 64        android:paddingTop="8dp"
 65        android:text="@string/muc_details_your_nickname" />
 66
 67    <RelativeLayout
 68        android:layout_width="match_parent"
 69        android:layout_height="wrap_content"
 70        android:background="#eee" >
 71        
 72
 73        <EditText
 74            android:id="@+id/muc_your_nick"
 75            android:layout_width="wrap_content"
 76            android:layout_height="48dp"
 77            android:layout_alignParentLeft="true"
 78            android:layout_toLeftOf="@+id/muc_edit_nick"
 79            android:background="#eee"
 80            android:ems="10"
 81            android:hint="@string/muc_details_your_nickname"
 82            android:inputType="textEmailAddress"
 83            android:paddingBottom="12dp"
 84            android:paddingLeft="8dp"
 85            android:paddingRight="8dp"
 86            android:paddingTop="12dp" />
 87
 88        <ImageButton
 89            android:id="@+id/muc_edit_nick"
 90            android:layout_width="48dp"
 91            android:layout_height="48dp"
 92            android:layout_alignParentRight="true"
 93            android:layout_alignParentTop="true"
 94            android:layout_centerVertical="true"
 95            android:background="?android:selectableItemBackground"
 96            android:padding="8dp"
 97            android:src="@drawable/ic_action_edit" />
 98    </RelativeLayout>
 99    <TextView
100        android:id="@+id/muc_role"
101        android:layout_width="wrap_content"
102        android:layout_height="wrap_content"
103        android:padding="8dp"
104        android:singleLine="true"
105        android:textSize="18sp"
106        android:textColor="#5b5b5b"/>
107    
108    <LinearLayout
109        android:id="@+id/muc_more_details"
110        android:layout_width="fill_parent"
111        android:layout_height="fill_parent"
112        android:orientation="vertical">
113
114    <TextView
115        android:id="@+id/muc_participants_header"
116        style="@style/sectionHeader"
117        android:layout_width="wrap_content"
118        android:layout_height="wrap_content"
119        android:paddingLeft="8dp"
120        android:paddingRight="8dp"
121        android:paddingTop="8dp"
122        android:text="@string/muc_details_other_members" />
123
124    <LinearLayout
125        android:id="@+id/muc_members"
126        android:layout_width="fill_parent"
127        android:layout_height="fill_parent"
128        android:layout_weight="1" 
129        android:orientation="vertical"
130        android:divider="?android:dividerHorizontal"
131        android:showDividers="middle"
132        >
133    </LinearLayout>
134    </LinearLayout>
135
136    <Button
137        android:layout_marginTop="24dp"
138        android:id="@+id/invite"
139        style="?android:attr/buttonStyleSmall"
140        android:layout_width="wrap_content"
141        android:layout_height="wrap_content"
142        android:text="@string/invite_contacts"
143        android:layout_gravity="center_horizontal"/>
144</LinearLayout>
145</ScrollView>