1<?xml version="1.0" encoding="utf-8"?>
2<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 xmlns:app="http://schemas.android.com/apk/res-auto"
4 android:layout_width="match_parent"
5 android:layout_height="match_parent"
6 android:background="?attr/color_background_secondary">
7
8 <ScrollView
9 android:layout_width="fill_parent"
10 android:layout_height="fill_parent"
11 android:layout_above="@+id/button_bar">
12
13 <LinearLayout
14 android:layout_width="match_parent"
15 android:layout_height="wrap_content"
16 android:layout_marginBottom="@dimen/activity_vertical_margin"
17 android:layout_marginLeft="@dimen/activity_horizontal_margin"
18 android:layout_marginRight="@dimen/activity_horizontal_margin"
19 android:layout_marginTop="@dimen/activity_vertical_margin"
20 android:background="?attr/infocard_border"
21 android:orientation="vertical"
22 android:padding="@dimen/infocard_padding">
23
24
25 <android.support.design.widget.TextInputLayout
26 android:layout_width="match_parent"
27 android:layout_height="wrap_content"
28 app:passwordToggleDrawable="@drawable/visibility_toggle_drawable"
29 app:passwordToggleEnabled="true"
30 app:passwordToggleTint="?attr/color_text_secondary">
31
32 <android.support.design.widget.TextInputEditText
33 android:id="@+id/current_password"
34 android:layout_width="match_parent"
35 android:layout_height="wrap_content"
36 android:layout_alignParentTop="true"
37 android:hint="@string/current_password"
38 android:inputType="textPassword"
39 android:textColor="?attr/color_text_primary"
40 android:textColorHint="?attr/color_text_secondary"
41 android:textSize="?attr/TextSizeBody" />
42 </android.support.design.widget.TextInputLayout>
43
44 <android.support.design.widget.TextInputLayout
45 android:layout_width="match_parent"
46 android:layout_height="wrap_content"
47 app:passwordToggleDrawable="@drawable/visibility_toggle_drawable"
48 app:passwordToggleEnabled="true"
49 app:passwordToggleTint="?attr/color_text_secondary">
50
51 <android.support.design.widget.TextInputEditText
52 android:id="@+id/new_password"
53 android:layout_width="match_parent"
54 android:layout_height="wrap_content"
55 android:layout_alignParentTop="true"
56 android:hint="@string/new_password"
57 android:inputType="textPassword"
58 android:textColor="?attr/color_text_primary"
59 android:textColorHint="?attr/color_text_secondary"
60 android:textSize="?attr/TextSizeBody" />
61 </android.support.design.widget.TextInputLayout>
62
63 </LinearLayout>
64 </ScrollView>
65
66 <LinearLayout
67 android:id="@+id/button_bar"
68 android:layout_width="wrap_content"
69 android:layout_height="wrap_content"
70 android:layout_alignParentBottom="true"
71 android:layout_alignParentLeft="true"
72 android:layout_alignParentRight="true">
73
74 <Button
75 android:id="@+id/left_button"
76 style="?android:attr/borderlessButtonStyle"
77 android:layout_width="0dp"
78 android:layout_height="wrap_content"
79 android:layout_weight="1"
80 android:text="@string/cancel" />
81
82 <View
83 android:layout_width="1dp"
84 android:layout_height="fill_parent"
85 android:layout_marginBottom="7dp"
86 android:layout_marginTop="7dp"
87 android:background="?attr/divider" />
88
89 <Button
90 android:id="@+id/right_button"
91 style="?android:attr/borderlessButtonStyle"
92 android:layout_width="0dp"
93 android:layout_height="wrap_content"
94 android:layout_weight="1"
95 android:text="@string/change_password" />
96 </LinearLayout>
97
98</RelativeLayout>