2021-01-14 13:05:03 -05:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2021-06-25 14:27:51 -03:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2021-01-14 13:05:03 -05:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
2021-06-25 14:27:51 -03:00
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
|
|
android:id="@+id/toolbar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:minHeight="?attr/actionBarSize"
|
|
|
|
android:visibility="visible"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:navigationIcon="@drawable/ic_x"
|
|
|
|
app:title="@string/EditProfileNameFragment_your_name"
|
|
|
|
app:titleTextAppearance="@style/Signal.Text.Title" />
|
2021-01-14 13:05:03 -05:00
|
|
|
|
2021-06-25 14:27:51 -03:00
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
android:id="@+id/edit_profile_given_name_wrapper"
|
|
|
|
style="@style/Widget.Signal.TextInputLayout.FilledBox"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:hint="@string/EditProfileNameFragment_first_name"
|
|
|
|
android:minHeight="56dp"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/toolbar">
|
2021-01-14 13:05:03 -05:00
|
|
|
|
2021-06-25 14:27:51 -03:00
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiEditText
|
|
|
|
android:id="@+id/edit_profile_name_given_name"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:inputType="textPersonName"
|
|
|
|
android:maxLines="1" />
|
2021-01-14 13:05:03 -05:00
|
|
|
|
2021-06-25 14:27:51 -03:00
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
android:id="@+id/edit_profile_family_name_wrapper"
|
|
|
|
style="@style/Widget.Signal.TextInputLayout.FilledBox"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
android:hint="@string/EditProfileNameFragment_last_name_optional"
|
|
|
|
android:minHeight="56dp"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/edit_profile_given_name_wrapper">
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiEditText
|
|
|
|
android:id="@+id/edit_profile_name_family_name"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:inputType="textPersonName"
|
|
|
|
android:maxLines="1" />
|
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
<com.dd.CircularProgressButton
|
|
|
|
android:id="@+id/edit_profile_name_save"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="bottom|end"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginBottom="16dp"
|
|
|
|
android:text="@string/EditProfileNameFragment_save"
|
|
|
|
android:textColor="@color/white"
|
|
|
|
app:cornerRadius="80dp"
|
|
|
|
app:cpb_colorIndicator="@color/white"
|
|
|
|
app:cpb_colorProgress="?colorAccent"
|
|
|
|
app:cpb_cornerRadius="28dp"
|
|
|
|
app:cpb_selectorIdle="@drawable/progress_button_state"
|
|
|
|
app:cpb_textIdle="@string/EditProfileNameFragment_save"
|
|
|
|
app:elevation="4dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" />
|
2021-01-14 13:05:03 -05:00
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|