1<?xml version="1.0" encoding="utf-8"?>
  2<layout xmlns:android="http://schemas.android.com/apk/res/android"
  3    xmlns:app="http://schemas.android.com/apk/res-auto">
  4
  5    <RelativeLayout
  6        android:layout_width="match_parent"
  7        android:layout_height="match_parent">
  8
  9        <com.google.android.material.appbar.AppBarLayout
 10            android:id="@+id/app_bar_layout"
 11            android:layout_width="match_parent"
 12            android:layout_height="wrap_content">
 13
 14            <com.google.android.material.appbar.MaterialToolbar
 15                android:id="@+id/toolbar"
 16                android:layout_width="match_parent"
 17                android:layout_height="wrap_content"
 18                android:minHeight="?attr/actionBarSize" />
 19        </com.google.android.material.appbar.AppBarLayout>
 20
 21        <ScrollView
 22            android:layout_width="fill_parent"
 23            android:layout_height="fill_parent"
 24            android:layout_above="@+id/button_bar"
 25            android:layout_below="@id/app_bar_layout">
 26
 27            <LinearLayout
 28                android:layout_width="match_parent"
 29                android:layout_height="wrap_content"
 30                android:layout_marginLeft="@dimen/activity_horizontal_margin"
 31                android:layout_marginTop="@dimen/activity_vertical_margin"
 32                android:layout_marginRight="@dimen/activity_horizontal_margin"
 33                android:layout_marginBottom="@dimen/activity_vertical_margin">
 34
 35                <LinearLayout
 36                    android:layout_width="match_parent"
 37                    android:layout_height="wrap_content"
 38                    android:orientation="vertical"
 39                    android:padding="@dimen/card_padding_regular">
 40
 41
 42                    <com.google.android.material.textfield.TextInputLayout
 43                        android:id="@+id/current_password_layout"
 44                        android:layout_width="match_parent"
 45                        android:layout_height="wrap_content"
 46                        android:hint="@string/current_password"
 47                        app:endIconMode="password_toggle">
 48
 49                        <eu.siacs.conversations.ui.widget.TextInputEditText
 50                            android:id="@+id/current_password"
 51                            android:layout_width="match_parent"
 52                            android:layout_height="wrap_content"
 53                            android:layout_alignParentTop="true"
 54                            android:inputType="textPassword" />
 55                    </com.google.android.material.textfield.TextInputLayout>
 56
 57                    <com.google.android.material.textfield.TextInputLayout
 58                        android:id="@+id/new_password_layout"
 59                        android:layout_width="match_parent"
 60                        android:layout_height="wrap_content"
 61                        android:hint="@string/new_password"
 62                        app:endIconMode="password_toggle">
 63
 64                        <eu.siacs.conversations.ui.widget.TextInputEditText
 65                            android:id="@+id/new_password"
 66                            android:layout_width="match_parent"
 67                            android:layout_height="wrap_content"
 68                            android:layout_alignParentTop="true"
 69                            android:inputType="textPassword" />
 70                    </com.google.android.material.textfield.TextInputLayout>
 71                </LinearLayout>
 72            </LinearLayout>
 73        </ScrollView>
 74
 75        <RelativeLayout
 76            android:id="@+id/button_bar"
 77            android:layout_width="wrap_content"
 78            android:layout_height="wrap_content"
 79            android:layout_alignParentStart="true"
 80            android:layout_alignParentEnd="true"
 81            android:layout_alignParentBottom="true"
 82            android:paddingHorizontal="16dp"
 83            android:paddingVertical="8dp">
 84
 85            <Button
 86                android:id="@+id/cancel_button"
 87                style="@style/Widget.Material3.Button.TextButton"
 88                android:layout_width="wrap_content"
 89                android:layout_height="wrap_content"
 90                android:layout_alignParentStart="true"
 91                android:layout_centerInParent="true"
 92                android:text="@string/cancel" />
 93
 94
 95            <Button
 96                android:id="@+id/change_password_button"
 97                android:layout_width="wrap_content"
 98                android:layout_height="wrap_content"
 99                android:layout_alignParentEnd="true"
100                android:layout_centerInParent="true"
101                android:text="@string/change_password" />
102        </RelativeLayout>
103
104
105    </RelativeLayout>
106</layout>