anotherim/src/main/res/layout/activity_change_password.xml

106 lines
4.6 KiB
XML
Raw Normal View History

2015-01-03 09:35:12 +00:00
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
2015-01-03 09:35:12 +00:00
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/app_bar_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content">
2015-01-03 09:35:12 +00:00
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?attr/actionBarSize" />
</com.google.android.material.appbar.AppBarLayout>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_above="@+id/button_bar"
android:layout_below="@id/app_bar_layout">
2018-02-18 08:26:12 +00:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/activity_horizontal_margin"
android:layout_marginTop="@dimen/activity_vertical_margin"
android:layout_marginRight="@dimen/activity_horizontal_margin"
android:layout_marginBottom="@dimen/activity_vertical_margin">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="@dimen/card_padding_regular">
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/current_password_layout"
2018-02-18 08:26:12 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/current_password"
app:endIconMode="password_toggle">
2015-01-03 09:35:12 +00:00
<eu.siacs.conversations.ui.widget.TextInputEditText
android:id="@+id/current_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:inputType="textPassword" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/new_password_layout"
2018-02-18 08:26:12 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/new_password"
app:endIconMode="password_toggle">
<eu.siacs.conversations.ui.widget.TextInputEditText
android:id="@+id/new_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:inputType="textPassword" />
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>
2018-02-18 08:26:12 +00:00
</LinearLayout>
</ScrollView>
2015-01-03 09:35:12 +00:00
<RelativeLayout
android:id="@+id/button_bar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentEnd="true"
android:layout_alignParentBottom="true"
android:paddingHorizontal="16dp"
android:paddingVertical="8dp">
<Button
android:id="@+id/cancel_button"
style="@style/Widget.Material3.Button.TextButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_centerInParent="true"
android:text="@string/cancel" />
<Button
android:id="@+id/change_password_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_centerInParent="true"
android:text="@string/change_password" />
</RelativeLayout>
2015-01-03 09:35:12 +00:00
</RelativeLayout>
</layout>