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