2015-01-03 09:35:12 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-02-18 08:26:12 +00:00
|
|
|
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">
|
2015-01-03 09:35:12 +00:00
|
|
|
|
2018-03-31 10:16:56 +00:00
|
|
|
<include layout="@layout/toolbar"/>
|
2018-03-18 08:30:22 +00:00
|
|
|
|
2017-12-15 11:31:31 +00:00
|
|
|
<ScrollView
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="fill_parent"
|
2018-03-31 10:16:56 +00:00
|
|
|
android:layout_above="@+id/button_bar"
|
|
|
|
android:layout_below="@id/toolbar">
|
2015-01-03 09:35:12 +00:00
|
|
|
|
2021-01-18 17:26:46 +00:00
|
|
|
<androidx.cardview.widget.CardView
|
2017-12-15 11:31:31 +00:00
|
|
|
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"
|
2018-02-18 08:26:12 +00:00
|
|
|
android:layout_marginTop="@dimen/activity_vertical_margin">
|
2015-01-03 09:35:12 +00:00
|
|
|
|
2018-02-18 08:26:12 +00:00
|
|
|
<LinearLayout
|
2017-12-15 11:31:31 +00:00
|
|
|
android:layout_width="match_parent"
|
2018-02-17 06:09:21 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-02-18 08:26:12 +00:00
|
|
|
android:orientation="vertical"
|
2018-02-18 14:17:11 +00:00
|
|
|
android:padding="@dimen/card_padding_regular">
|
2018-02-18 08:26:12 +00:00
|
|
|
|
2017-12-15 11:31:31 +00:00
|
|
|
|
2021-01-18 17:26:46 +00:00
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
2018-02-18 09:44:39 +00:00
|
|
|
android:id="@+id/current_password_layout"
|
2017-12-15 11:31:31 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2018-03-31 10:16:56 +00:00
|
|
|
app:errorTextAppearance="@style/TextAppearance.Conversations.Design.Error"
|
|
|
|
app:hintTextAppearance="@style/TextAppearance.Conversations.Design.Hint"
|
2018-02-18 08:26:12 +00:00
|
|
|
app:passwordToggleDrawable="@drawable/visibility_toggle_drawable"
|
|
|
|
app:passwordToggleEnabled="true"
|
2018-03-02 16:09:00 +00:00
|
|
|
app:passwordToggleTint="?android:textColorSecondary">
|
2017-12-15 11:31:31 +00:00
|
|
|
|
2018-11-21 11:08:41 +00:00
|
|
|
<eu.siacs.conversations.ui.widget.TextInputEditText
|
2018-02-18 08:26:12 +00:00
|
|
|
android:id="@+id/current_password"
|
2018-03-31 10:16:56 +00:00
|
|
|
style="@style/Widget.Conversations.EditText"
|
2018-02-18 08:26:12 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:hint="@string/current_password"
|
2018-02-28 16:39:59 +00:00
|
|
|
android:inputType="textPassword"/>
|
2021-01-18 17:26:46 +00:00
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
2015-01-03 09:35:12 +00:00
|
|
|
|
2021-01-18 17:26:46 +00:00
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
2018-02-18 09:44:39 +00:00
|
|
|
android:id="@+id/new_password_layout"
|
2017-12-15 11:31:31 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2018-03-31 10:16:56 +00:00
|
|
|
app:errorTextAppearance="@style/TextAppearance.Conversations.Design.Error"
|
|
|
|
app:hintTextAppearance="@style/TextAppearance.Conversations.Design.Hint"
|
2018-02-18 08:26:12 +00:00
|
|
|
app:passwordToggleDrawable="@drawable/visibility_toggle_drawable"
|
|
|
|
app:passwordToggleEnabled="true"
|
2018-03-02 16:09:00 +00:00
|
|
|
app:passwordToggleTint="?android:textColorSecondary">
|
2015-01-03 09:35:12 +00:00
|
|
|
|
2018-11-21 11:08:41 +00:00
|
|
|
<eu.siacs.conversations.ui.widget.TextInputEditText
|
2018-02-18 08:26:12 +00:00
|
|
|
android:id="@+id/new_password"
|
2018-03-31 10:16:56 +00:00
|
|
|
style="@style/Widget.Conversations.EditText"
|
2018-02-18 08:26:12 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:hint="@string/new_password"
|
2018-02-28 16:39:59 +00:00
|
|
|
android:inputType="textPassword"/>
|
2021-01-18 17:26:46 +00:00
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
2018-02-18 08:26:12 +00:00
|
|
|
</LinearLayout>
|
2021-01-18 17:26:46 +00:00
|
|
|
</androidx.cardview.widget.CardView>
|
2017-12-15 11:31:31 +00:00
|
|
|
</ScrollView>
|
2015-01-03 09:35:12 +00:00
|
|
|
|
2017-12-15 11:31:31 +00:00
|
|
|
<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">
|
2015-01-03 09:35:12 +00:00
|
|
|
|
2017-12-15 11:31:31 +00:00
|
|
|
<Button
|
|
|
|
android:id="@+id/left_button"
|
2018-04-21 20:17:47 +00:00
|
|
|
style="@style/Widget.Conversations.Button.Borderless"
|
2017-12-15 11:31:31 +00:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
2018-02-18 08:26:12 +00:00
|
|
|
android:text="@string/cancel"/>
|
2015-01-03 09:35:12 +00:00
|
|
|
|
2017-12-15 11:31:31 +00:00
|
|
|
<View
|
|
|
|
android:layout_width="1dp"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:layout_marginBottom="7dp"
|
|
|
|
android:layout_marginTop="7dp"
|
2018-02-18 08:26:12 +00:00
|
|
|
android:background="?attr/divider"/>
|
2015-01-03 09:35:12 +00:00
|
|
|
|
2017-12-15 11:31:31 +00:00
|
|
|
<Button
|
|
|
|
android:id="@+id/right_button"
|
2018-04-21 20:17:47 +00:00
|
|
|
style="@style/Widget.Conversations.Button.Borderless"
|
2017-12-15 11:31:31 +00:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
2018-02-18 08:26:12 +00:00
|
|
|
android:text="@string/change_password"/>
|
2017-12-15 11:31:31 +00:00
|
|
|
</LinearLayout>
|
2015-01-03 09:35:12 +00:00
|
|
|
|
|
|
|
</RelativeLayout>
|