2021-01-21 12:35:00 -05:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
|
|
android:id="@+id/toolbar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="?attr/actionBarSize"
|
|
|
|
android:visibility="visible"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:navigationIcon="@drawable/ic_arrow_left_24"
|
|
|
|
app:title="@string/EditAboutFragment_about" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/edit_about_emoji"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:padding="15dp"
|
|
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
|
|
app:srcCompat="@drawable/ic_add_emoji"
|
|
|
|
app:tint="@color/signal_text_secondary"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/edit_about_body"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/edit_about_body"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"/>
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiEditText
|
|
|
|
android:id="@+id/edit_about_body"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
2021-01-22 10:29:52 -05:00
|
|
|
android:layout_marginEnd="8dp"
|
2021-01-21 12:35:00 -05:00
|
|
|
style="@style/Signal.Text.Body"
|
|
|
|
android:hint="@string/EditAboutFragment_write_a_few_words_about_yourself"
|
|
|
|
android:inputType="textCapSentences"
|
|
|
|
android:maxLines="1"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/toolbar"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/edit_about_emoji"
|
2021-01-22 10:29:52 -05:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/edit_about_clear"/>
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/edit_about_clear"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="20dp"
|
|
|
|
app:srcCompat="@drawable/ic_x"
|
|
|
|
app:tint="@color/signal_text_secondary"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/edit_about_body"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/edit_about_body"/>
|
2021-01-21 12:35:00 -05:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/edit_about_count"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
style="@style/Signal.Text.Caption"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/edit_about_body"
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/edit_about_body"
|
|
|
|
tools:text="75/100"/>
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/edit_about_save"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginBottom="16dp"
|
|
|
|
style="@style/Signal.Widget.Button.Medium.Primary"
|
|
|
|
android:text="@string/EditProfileNameFragment_save"
|
|
|
|
app:cornerRadius="80dp"
|
|
|
|
app:elevation="4dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"/>
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|