activity_change_password.xml

  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            </RelativeLayout>
 48
 49            <TextView
 50                android:layout_width="wrap_content"
 51                android:layout_height="wrap_content"
 52                android:text="@string/new_password"
 53                android:textColor="?attr/color_text_primary"
 54                android:textSize="?attr/TextSizeBody"/>
 55
 56            <RelativeLayout
 57                android:layout_width="match_parent"
 58                android:layout_height="match_parent"
 59                android:minHeight="56sp">
 60
 61                <com.scottyab.showhidepasswordedittext.ShowHidePasswordEditText
 62                    android:id="@+id/new_password"
 63                    android:layout_width="match_parent"
 64                    android:layout_height="wrap_content"
 65                    android:layout_alignParentTop="true"
 66                    android:hint="@string/password"
 67                    android:inputType="textPassword"
 68                    android:textColor="?attr/color_text_primary"
 69                    android:textColorHint="?attr/color_text_secondary"
 70                    android:textSize="?attr/TextSizeBody"
 71                    app:tint_color="?attr/color_text_secondary"/>
 72            </RelativeLayout>
 73
 74        </LinearLayout>
 75    </ScrollView>
 76
 77    <LinearLayout
 78        android:id="@+id/button_bar"
 79        android:layout_width="wrap_content"
 80        android:layout_height="wrap_content"
 81        android:layout_alignParentBottom="true"
 82        android:layout_alignParentLeft="true"
 83        android:layout_alignParentRight="true">
 84
 85        <Button
 86            android:id="@+id/left_button"
 87            style="?android:attr/borderlessButtonStyle"
 88            android:layout_width="0dp"
 89            android:layout_height="wrap_content"
 90            android:layout_weight="1"
 91            android:text="@string/cancel"/>
 92
 93        <View
 94            android:layout_width="1dp"
 95            android:layout_height="fill_parent"
 96            android:layout_marginBottom="7dp"
 97            android:layout_marginTop="7dp"
 98            android:background="?attr/divider"/>
 99
100        <Button
101            android:id="@+id/right_button"
102            style="?android:attr/borderlessButtonStyle"
103            android:layout_width="0dp"
104            android:layout_height="wrap_content"
105            android:layout_weight="1"
106            android:text="@string/change_password"/>
107    </LinearLayout>
108
109</RelativeLayout>