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 <include layout="@layout/toolbar" />
9
10 <ScrollView
11 android:layout_width="fill_parent"
12 android:layout_height="fill_parent"
13 android:layout_below="@id/toolbar"
14 android:layout_above="@+id/button_bar">
15
16 <android.support.v7.widget.CardView
17 android:layout_width="match_parent"
18 android:layout_height="wrap_content"
19 android:layout_marginBottom="@dimen/activity_vertical_margin"
20 android:layout_marginLeft="@dimen/activity_horizontal_margin"
21 android:layout_marginRight="@dimen/activity_horizontal_margin"
22 android:layout_marginTop="@dimen/activity_vertical_margin">
23
24 <LinearLayout
25 android:layout_width="match_parent"
26 android:layout_height="wrap_content"
27 android:orientation="vertical"
28 android:padding="@dimen/card_padding_regular">
29
30
31 <android.support.design.widget.TextInputLayout
32 android:id="@+id/current_password_layout"
33 android:layout_width="match_parent"
34 android:layout_height="wrap_content"
35 app:passwordToggleDrawable="@drawable/visibility_toggle_drawable"
36 app:passwordToggleEnabled="true"
37 app:passwordToggleTint="?android:textColorSecondary">
38
39 <android.support.design.widget.TextInputEditText
40 android:id="@+id/current_password"
41 android:layout_width="match_parent"
42 android:layout_height="wrap_content"
43 android:layout_alignParentTop="true"
44 android:hint="@string/current_password"
45 android:inputType="textPassword"/>
46 </android.support.design.widget.TextInputLayout>
47
48 <android.support.design.widget.TextInputLayout
49 android:id="@+id/new_password_layout"
50 android:layout_width="match_parent"
51 android:layout_height="wrap_content"
52 app:passwordToggleDrawable="@drawable/visibility_toggle_drawable"
53 app:passwordToggleEnabled="true"
54 app:passwordToggleTint="?android:textColorSecondary">
55
56 <android.support.design.widget.TextInputEditText
57 android:id="@+id/new_password"
58 android:layout_width="match_parent"
59 android:layout_height="wrap_content"
60 android:layout_alignParentTop="true"
61 android:hint="@string/new_password"
62 android:inputType="textPassword"/>
63 </android.support.design.widget.TextInputLayout>
64 </LinearLayout>
65 </android.support.v7.widget.CardView>
66 </ScrollView>
67
68 <LinearLayout
69 android:id="@+id/button_bar"
70 android:layout_width="wrap_content"
71 android:layout_height="wrap_content"
72 android:layout_alignParentBottom="true"
73 android:layout_alignParentLeft="true"
74 android:layout_alignParentRight="true">
75
76 <Button
77 android:id="@+id/left_button"
78 style="?android:attr/borderlessButtonStyle"
79 android:layout_width="0dp"
80 android:layout_height="wrap_content"
81 android:layout_weight="1"
82 android:text="@string/cancel"/>
83
84 <View
85 android:layout_width="1dp"
86 android:layout_height="fill_parent"
87 android:layout_marginBottom="7dp"
88 android:layout_marginTop="7dp"
89 android:background="?attr/divider"/>
90
91 <Button
92 android:id="@+id/right_button"
93 style="?android:attr/borderlessButtonStyle"
94 android:layout_width="0dp"
95 android:layout_height="wrap_content"
96 android:layout_weight="1"
97 android:text="@string/change_password"/>
98 </LinearLayout>
99
100</RelativeLayout>