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="?attr/color_background_secondary">
6
7 <ScrollView
8 android:layout_width="fill_parent"
9 android:layout_height="fill_parent"
10 android:layout_above="@+id/button_bar">
11 <LinearLayout
12 android:layout_width="match_parent"
13 android:layout_height="wrap_content"
14 android:layout_marginLeft="@dimen/activity_horizontal_margin"
15 android:layout_marginRight="@dimen/activity_horizontal_margin"
16 android:layout_marginTop="@dimen/activity_vertical_margin"
17 android:layout_marginBottom="@dimen/activity_vertical_margin"
18 android:background="?attr/infocard_border"
19 android:padding="@dimen/infocard_padding"
20 android:orientation="vertical">
21
22 <TextView
23 android:id="@+id/current_password_label"
24 android:layout_width="wrap_content"
25 android:layout_height="wrap_content"
26 android:text="@string/current_password"
27 android:textColor="?attr/color_text_primary"
28 android:textSize="?attr/TextSizeBody"/>
29
30 <EditText
31 android:id="@+id/current_password"
32 android:layout_width="match_parent"
33 android:layout_height="wrap_content"
34 android:layout_marginBottom="8dp"
35 android:hint="@string/password"
36 android:inputType="textPassword"
37 android:textColor="?attr/color_text_primary"
38 android:textColorHint="?attr/color_text_secondary"
39 android:textSize="?attr/TextSizeBody"/>
40
41 <TextView
42 android:layout_width="wrap_content"
43 android:layout_height="wrap_content"
44 android:text="@string/new_password"
45 android:textColor="?attr/color_text_primary"
46 android:textSize="?attr/TextSizeBody"/>
47
48 <EditText
49 android:id="@+id/new_password"
50 android:layout_width="match_parent"
51 android:layout_height="wrap_content"
52 android:layout_marginBottom="8dp"
53 android:hint="@string/password"
54 android:inputType="textPassword"
55 android:textColor="?attr/color_text_primary"
56 android:textColorHint="?attr/color_text_secondary"
57 android:textSize="?attr/TextSizeBody"/>
58
59 <TextView
60 android:layout_width="wrap_content"
61 android:layout_height="wrap_content"
62 android:text="@string/account_settings_confirm_password"
63 android:textColor="?attr/color_text_primary"
64 android:textSize="?attr/TextSizeBody"/>
65
66 <EditText
67 android:id="@+id/new_password_confirm"
68 android:layout_width="match_parent"
69 android:layout_height="wrap_content"
70 android:hint="@string/password"
71 android:inputType="textPassword"
72 android:textColor="?attr/color_text_primary"
73 android:textColorHint="?attr/color_text_secondary"
74 android:textSize="?attr/TextSizeBody"/>
75 </LinearLayout>
76 </ScrollView>
77
78 <LinearLayout
79 android:id="@+id/button_bar"
80 android:layout_width="wrap_content"
81 android:layout_height="wrap_content"
82 android:layout_alignParentBottom="true"
83 android:layout_alignParentLeft="true"
84 android:layout_alignParentRight="true">
85
86 <Button
87 android:id="@+id/left_button"
88 style="?android:attr/borderlessButtonStyle"
89 android:layout_width="0dp"
90 android:layout_height="wrap_content"
91 android:layout_weight="1"
92 android:text="@string/cancel"/>
93
94 <View
95 android:layout_width="1dp"
96 android:layout_height="fill_parent"
97 android:layout_marginBottom="7dp"
98 android:layout_marginTop="7dp"
99 android:background="?attr/divider"/>
100
101 <Button
102 android:id="@+id/right_button"
103 style="?android:attr/borderlessButtonStyle"
104 android:layout_width="0dp"
105 android:layout_height="wrap_content"
106 android:layout_weight="1"
107 android:text="@string/change_password"/>
108 </LinearLayout>
109
110</RelativeLayout>