2021-12-08 13:22:36 -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"
|
2022-08-09 13:29:04 -03:00
|
|
|
tools:viewBindingIgnore="true"
|
2021-12-08 13:22:36 -05:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.util.views.DarkOverflowToolbar
|
|
|
|
android:id="@+id/toolbar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="56dp"
|
|
|
|
android:theme="?attr/settingsToolbarStyle"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:navigationContentDescription="@string/DSLSettingsToolbar__navigate_up"
|
|
|
|
app:navigationIcon="@drawable/ic_arrow_left_24"
|
|
|
|
app:titleTextAppearance="@style/Signal.Text.Title" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/edit_notification_profile_title"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="24dp"
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
android:layout_marginEnd="24dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:textAppearance="@style/TextAppearance.Signal.Title1"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/toolbar"
|
|
|
|
tools:text="@string/EditNotificationProfileFragment__name_your_profile" />
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/edit_notification_profile_emoji"
|
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
|
|
android:padding="8dp"
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/edit_notification_profile_name_wrapper"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/edit_notification_profile_name_wrapper"
|
|
|
|
app:srcCompat="@drawable/ic_add_emoji"
|
|
|
|
app:tint="@color/signal_text_secondary" />
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
android:id="@+id/edit_notification_profile_name_wrapper"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="5dp"
|
|
|
|
android:layout_marginTop="24dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:hint="@string/EditNotificationProfileFragment__profile_name"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/edit_notification_profile_clear"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/edit_notification_profile_emoji"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/edit_notification_profile_title">
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiEditText
|
|
|
|
android:id="@+id/edit_notification_profile_name"
|
|
|
|
style="@style/Signal.Text.Body"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:inputType="textCapSentences"
|
|
|
|
android:maxLines="1"
|
|
|
|
app:emoji_forceCustom="true" />
|
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/edit_notification_profile_clear"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="20dp"
|
|
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/edit_notification_profile_name_wrapper"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/edit_notification_profile_name_wrapper"
|
|
|
|
app:srcCompat="@drawable/ic_x"
|
|
|
|
app:tint="@color/signal_text_secondary" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/edit_notification_profile_count"
|
|
|
|
style="@style/Signal.Text.Caption"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/edit_notification_profile_name_wrapper"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/edit_notification_profile_name_wrapper"
|
|
|
|
tools:text="75/100" />
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/recycler"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_marginTop="24dp"
|
|
|
|
android:clipChildren="false"
|
|
|
|
android:clipToPadding="false"
|
|
|
|
android:paddingBottom="60dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/edit_notification_profile_count" />
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/toolbar_shadow"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="5dp"
|
|
|
|
android:alpha="0"
|
|
|
|
android:background="@drawable/toolbar_shadow"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/recycler" />
|
|
|
|
|
2022-05-26 17:32:52 -03:00
|
|
|
<org.thoughtcrime.securesms.util.views.CircularProgressMaterialButton
|
2021-12-08 13:22:36 -05:00
|
|
|
android:id="@+id/edit_notification_profile_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:paddingStart="16dp"
|
|
|
|
android:paddingEnd="16dp"
|
2022-05-26 17:32:52 -03:00
|
|
|
app:circularProgressMaterialButton__label="@string/EditProfileNameFragment_save"
|
2021-12-08 13:22:36 -05:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|