106 lines
4.8 KiB
XML
106 lines
4.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/color_background_secondary">
|
|
|
|
<include layout="@layout/toolbar"/>
|
|
|
|
<ScrollView
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:layout_above="@+id/button_bar"
|
|
android:layout_below="@id/toolbar">
|
|
|
|
<android.support.v7.widget.CardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/activity_vertical_margin"
|
|
android:layout_marginLeft="@dimen/activity_horizontal_margin"
|
|
android:layout_marginRight="@dimen/activity_horizontal_margin"
|
|
android:layout_marginTop="@dimen/activity_vertical_margin">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="@dimen/card_padding_regular">
|
|
|
|
|
|
<android.support.design.widget.TextInputLayout
|
|
android:id="@+id/current_password_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:errorTextAppearance="@style/TextAppearance.Conversations.Design.Error"
|
|
app:hintTextAppearance="@style/TextAppearance.Conversations.Design.Hint"
|
|
app:passwordToggleDrawable="@drawable/visibility_toggle_drawable"
|
|
app:passwordToggleEnabled="true"
|
|
app:passwordToggleTint="?android:textColorSecondary">
|
|
|
|
<android.support.design.widget.TextInputEditText
|
|
android:id="@+id/current_password"
|
|
style="@style/Widget.Conversations.EditText"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentTop="true"
|
|
android:hint="@string/current_password"
|
|
android:inputType="textPassword"/>
|
|
</android.support.design.widget.TextInputLayout>
|
|
|
|
<android.support.design.widget.TextInputLayout
|
|
android:id="@+id/new_password_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:errorTextAppearance="@style/TextAppearance.Conversations.Design.Error"
|
|
app:hintTextAppearance="@style/TextAppearance.Conversations.Design.Hint"
|
|
app:passwordToggleDrawable="@drawable/visibility_toggle_drawable"
|
|
app:passwordToggleEnabled="true"
|
|
app:passwordToggleTint="?android:textColorSecondary">
|
|
|
|
<android.support.design.widget.TextInputEditText
|
|
android:id="@+id/new_password"
|
|
style="@style/Widget.Conversations.EditText"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentTop="true"
|
|
android:hint="@string/new_password"
|
|
android:inputType="textPassword"/>
|
|
</android.support.design.widget.TextInputLayout>
|
|
</LinearLayout>
|
|
</android.support.v7.widget.CardView>
|
|
</ScrollView>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/button_bar"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_alignParentRight="true">
|
|
|
|
<Button
|
|
android:id="@+id/left_button"
|
|
style="@style/Widget.Conversations.Button.Borderless"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/cancel"/>
|
|
|
|
<View
|
|
android:layout_width="1dp"
|
|
android:layout_height="fill_parent"
|
|
android:layout_marginBottom="7dp"
|
|
android:layout_marginTop="7dp"
|
|
android:background="?attr/divider"/>
|
|
|
|
<Button
|
|
android:id="@+id/right_button"
|
|
style="@style/Widget.Conversations.Button.Borderless"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/change_password"/>
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout> |