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 <TextView
25 android:id="@+id/current_password_label"
26 android:layout_width="wrap_content"
27 android:layout_height="wrap_content"
28 android:text="@string/current_password"
29 android:textColor="?attr/color_text_primary"
30 android:textSize="?attr/TextSizeBody"/>
31
32 <RelativeLayout
33 android:layout_width="match_parent"
34 android:layout_height="match_parent"
35 android:minHeight="64sp">
36
37 <com.scottyab.showhidepasswordedittext.ShowHidePasswordEditText
38 android:id="@+id/current_password"
39 android:layout_alignParentTop="true"
40 android:layout_width="match_parent"
41 android:layout_height="wrap_content"
42 android:hint="@string/password"
43 android:inputType="textPassword"
44 android:textColor="?attr/color_text_primary"
45 android:textColorHint="?attr/color_text_secondary"
46 android:textSize="?attr/TextSizeBody"
47 app:tint_color="?attr/color_text_secondary"/>
48 </RelativeLayout>
49
50 <TextView
51 android:layout_width="wrap_content"
52 android:layout_height="wrap_content"
53 android:text="@string/new_password"
54 android:textColor="?attr/color_text_primary"
55 android:textSize="?attr/TextSizeBody"/>
56
57 <RelativeLayout
58 android:layout_width="match_parent"
59 android:layout_height="match_parent"
60 android:minHeight="56sp">
61
62 <com.scottyab.showhidepasswordedittext.ShowHidePasswordEditText
63 android:id="@+id/new_password"
64 android:layout_width="match_parent"
65 android:layout_height="wrap_content"
66 android:layout_alignParentTop="true"
67 android:hint="@string/password"
68 android:inputType="textPassword"
69 android:textColor="?attr/color_text_primary"
70 android:textColorHint="?attr/color_text_secondary"
71 android:textSize="?attr/TextSizeBody"
72 app:tint_color="?attr/color_text_secondary"/>
73 </RelativeLayout>
74
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>