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

106 lines
4.9 KiB
XML
Raw Normal View History

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"/>
<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
<androidx.cardview.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"
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
android:layout_width="match_parent"
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
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/current_password_layout"
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">
<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"
android:inputType="textPassword"/>
</com.google.android.material.textfield.TextInputLayout>
2015-01-03 09:35:12 +00:00
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/new_password_layout"
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
<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"
android:inputType="textPassword"/>
</com.google.android.material.textfield.TextInputLayout>
2018-02-18 08:26:12 +00:00
</LinearLayout>
</androidx.cardview.widget.CardView>
</ScrollView>
2015-01-03 09:35:12 +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
<Button
android:id="@+id/left_button"
2018-04-21 20:17:47 +00:00
style="@style/Widget.Conversations.Button.Borderless"
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
<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
<Button
android:id="@+id/right_button"
2018-04-21 20:17:47 +00:00
style="@style/Widget.Conversations.Button.Borderless"
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"/>
</LinearLayout>
2015-01-03 09:35:12 +00:00
</RelativeLayout>