activity_edit_account.xml

  1<?xml version="1.0" encoding="utf-8"?>
  2<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3    android:layout_width="match_parent"
  4    android:layout_height="match_parent"
  5    android:background="@color/primarybackground" >
  6
  7    <ScrollView
  8        android:layout_width="fill_parent"
  9        android:layout_height="wrap_content"
 10        android:layout_above="@+id/button_bar"
 11        android:layout_alignParentTop="true" >
 12
 13        <LinearLayout
 14            android:layout_width="match_parent"
 15            android:layout_height="wrap_content"
 16            android:orientation="vertical" >
 17
 18            <LinearLayout
 19                android:id="@+id/editor"
 20                android:layout_width="fill_parent"
 21                android:layout_height="wrap_content"
 22                android:orientation="vertical"
 23                android:padding="8dp" >
 24
 25                <TextView
 26                    android:layout_width="wrap_content"
 27                    android:layout_height="wrap_content"
 28                    android:text="@string/account_settings_jabber_id"
 29                    android:textColor="@color/primarytext"
 30                    android:textSize="?attr/TextSizeBody" />
 31
 32                <AutoCompleteTextView
 33                    android:id="@+id/account_jid"
 34                    android:layout_width="match_parent"
 35                    android:layout_height="wrap_content"
 36                    android:hint="@string/account_settings_example_jabber_id"
 37                    android:inputType="textEmailAddress" />
 38
 39                <TextView
 40                    android:layout_width="wrap_content"
 41                    android:layout_height="wrap_content"
 42                    android:layout_marginTop="8dp"
 43                    android:text="@string/account_settings_password"
 44                    android:textColor="@color/primarytext"
 45                    android:textSize="?attr/TextSizeBody" />
 46
 47                <EditText
 48                    android:id="@+id/account_password"
 49                    android:layout_width="match_parent"
 50                    android:layout_height="wrap_content"
 51                    android:hint="@string/password"
 52                    android:inputType="textPassword" />
 53
 54                <CheckBox
 55                    android:id="@+id/account_register_new"
 56                    android:layout_width="wrap_content"
 57                    android:layout_height="wrap_content"
 58                    android:layout_marginTop="8dp"
 59                    android:text="@string/register_account"
 60                    android:textColor="@color/primarytext"
 61                    android:textSize="?attr/TextSizeBody" />
 62
 63                <TextView
 64                    android:id="@+id/account_confirm_password_desc"
 65                    android:layout_width="wrap_content"
 66                    android:layout_height="wrap_content"
 67                    android:text="@string/account_settings_confirm_password"
 68                    android:textColor="@color/primarytext"
 69                    android:textSize="?attr/TextSizeBody"
 70                    android:visibility="gone" />
 71
 72                <EditText
 73                    android:id="@+id/account_password_confirm"
 74                    android:layout_width="match_parent"
 75                    android:layout_height="wrap_content"
 76                    android:layout_marginTop="8dp"
 77                    android:hint="@string/confirm_password"
 78                    android:inputType="textPassword"
 79                    android:visibility="gone" />
 80            </LinearLayout>
 81
 82            <LinearLayout
 83                android:id="@+id/stats"
 84                android:layout_width="fill_parent"
 85                android:layout_height="fill_parent"
 86                android:layout_marginTop="8dp"
 87                android:orientation="vertical"
 88                android:padding="16dp"
 89                android:visibility="gone" >
 90
 91                <TextView
 92                    android:layout_width="fill_parent"
 93                    android:layout_height="wrap_content"
 94                    android:gravity="center_horizontal"
 95                    android:text="@string/additional_information"
 96                    android:textColor="@color/secondarytext"
 97                    android:textSize="?attr/TextSizeHeadline"
 98                    android:textStyle="bold" />
 99
100                <TableLayout
101                    android:layout_width="match_parent"
102                    android:layout_height="wrap_content"
103                    android:layout_marginTop="8dp"
104                    android:stretchColumns="1" >
105
106                    <TableRow
107                        android:layout_width="fill_parent"
108                        android:layout_height="wrap_content" >
109
110                        <TextView
111                            android:layout_width="wrap_content"
112                            android:layout_height="wrap_content"
113                            android:text="@string/server_info_session_established" />
114
115                        <TextView
116                            android:id="@+id/session_est"
117                            android:layout_width="wrap_content"
118                            android:layout_height="wrap_content"
119                            android:layout_gravity="right" />
120                    </TableRow>
121
122                    <TableRow
123                        android:layout_width="fill_parent"
124                        android:layout_height="wrap_content" >
125
126                        <TextView
127                            android:layout_width="wrap_content"
128                            android:layout_height="wrap_content"
129                            android:text="@string/server_info_pep"
130                            android:textColor="@color/primarytext" />
131
132                        <TextView
133                            android:id="@+id/server_info_pep"
134                            android:layout_width="wrap_content"
135                            android:layout_height="wrap_content"
136                            android:layout_gravity="right" />
137                    </TableRow>
138
139                    <TableRow
140                        android:layout_width="fill_parent"
141                        android:layout_height="wrap_content" >
142
143                        <TextView
144                            android:layout_width="wrap_content"
145                            android:layout_height="wrap_content"
146                            android:text="@string/server_info_stream_management" />
147
148                        <TextView
149                            android:id="@+id/server_info_sm"
150                            android:layout_width="wrap_content"
151                            android:layout_height="wrap_content"
152                            android:layout_gravity="right" />
153                    </TableRow>
154
155                    <TableRow
156                        android:layout_width="fill_parent"
157                        android:layout_height="wrap_content" >
158
159                        <TextView
160                            android:layout_width="wrap_content"
161                            android:layout_height="wrap_content"
162                            android:text="@string/server_info_carbon_messages" />
163
164                        <TextView
165                            android:id="@+id/server_info_carbons"
166                            android:layout_width="wrap_content"
167                            android:layout_height="wrap_content"
168                            android:layout_gravity="right" />
169                    </TableRow>
170                </TableLayout>
171
172                <TextView
173                    android:id="@+id/otr_fingerprint_headline"
174                    android:layout_width="fill_parent"
175                    android:layout_height="wrap_content"
176                    android:layout_marginTop="16dp"
177                    android:gravity="center_horizontal"
178                    android:text="@string/otr_fingerprint"
179                    android:textColor="@color/secondarytext"
180                    android:textSize="?attr/TextSizeHeadline"
181                    android:textStyle="bold" />
182
183                <TextView
184                    android:id="@+id/otr_fingerprint"
185                    android:layout_width="wrap_content"
186                    android:layout_height="wrap_content"
187                    android:layout_marginTop="8dp"
188                    android:textSize="?attr/TextSizeBody"
189                    android:typeface="monospace" />
190            </LinearLayout>
191        </LinearLayout>
192    </ScrollView>
193
194    <LinearLayout
195        android:id="@+id/button_bar"
196        android:layout_width="wrap_content"
197        android:layout_height="wrap_content"
198        android:layout_alignParentBottom="true"
199        android:layout_alignParentLeft="true"
200        android:layout_alignParentRight="true" >
201
202        <Button
203            android:id="@+id/cancel_button"
204            style="?android:attr/borderlessButtonStyle"
205            android:layout_width="0dp"
206            android:layout_height="wrap_content"
207            android:layout_weight="1"
208            android:text="@string/cancel"
209            android:textColor="@color/primarytext" />
210
211        <View
212            android:layout_width="1dp"
213            android:layout_height="fill_parent"
214            android:layout_marginBottom="7dp"
215            android:layout_marginTop="7dp"
216            android:background="@color/divider" />
217
218        <Button
219            android:id="@+id/save_button"
220            style="?android:attr/borderlessButtonStyle"
221            android:layout_width="0dp"
222            android:layout_height="wrap_content"
223            android:layout_weight="1"
224            android:enabled="false"
225            android:text="@string/save"
226            android:textColor="@color/secondarytext" />
227    </LinearLayout>
228
229</RelativeLayout>