activity_change_password.xml

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