2020-05-13 13:41:36 -03: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"
|
2020-05-13 13:41:36 -03:00
|
|
|
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"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:layout_height="@dimen/signal_m3_toolbar_height"
|
|
|
|
android:minHeight="@dimen/signal_m3_toolbar_height"
|
2020-05-13 13:41:36 -03:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:navigationIcon="@drawable/ic_arrow_left_24"
|
2022-05-26 17:32:52 -03:00
|
|
|
app:titleTextAppearance="@style/TextAppearance.Material3.TitleLarge"
|
2020-06-05 21:44:06 -03:00
|
|
|
tools:title="@string/AddGroupDetailsFragment__name_this_group" />
|
2020-05-13 13:41:36 -03:00
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/group_avatar"
|
|
|
|
android:layout_width="64dp"
|
|
|
|
android:layout_height="64dp"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:layout_marginStart="@dimen/dsl_settings_gutter"
|
2020-05-13 13:41:36 -03:00
|
|
|
android:layout_marginTop="16dp"
|
2020-11-10 10:20:54 -05:00
|
|
|
android:background="@drawable/tinted_circle"
|
2022-05-26 17:32:52 -03:00
|
|
|
app:backgroundTint="@color/signal_colorSurfaceVariant"
|
2020-05-13 13:41:36 -03:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/toolbar" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiEditText
|
2020-06-16 17:42:54 -03:00
|
|
|
android:id="@+id/name"
|
2020-05-13 13:41:36 -03:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginEnd="@dimen/dsl_settings_gutter"
|
2020-05-13 13:41:36 -03:00
|
|
|
android:background="@null"
|
|
|
|
android:hint="@string/AddGroupDetailsFragment__group_name_required"
|
2020-07-07 16:52:05 -03:00
|
|
|
android:inputType="text"
|
2020-05-13 13:41:36 -03:00
|
|
|
android:maxLines="1"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.BodyLarge"
|
|
|
|
android:textColorHint="@color/signal_colorOnSurfaceVariant_60"
|
2020-05-13 13:41:36 -03:00
|
|
|
app:layout_constraintBottom_toBottomOf="@id/group_avatar"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/group_avatar"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/group_avatar" />
|
|
|
|
|
2021-05-18 15:19:33 -04:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/group_disappearing_messages_row"
|
|
|
|
android:layout_width="match_parent"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:layout_height="56dp"
|
2021-05-18 15:19:33 -04:00
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:orientation="horizontal"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:paddingHorizontal="@dimen/dsl_settings_gutter"
|
2021-05-18 15:19:33 -04:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/group_avatar">
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:srcCompat="@drawable/ic_timer_disabled_24"
|
|
|
|
app:tint="@color/signal_text_primary" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="24dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:text="@string/PrivacySettingsFragment__disappearing_messages"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.BodyLarge" />
|
2021-05-18 15:19:33 -04:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/group_disappearing_messages_value"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.BodyLarge"
|
2021-05-18 15:19:33 -04:00
|
|
|
android:textColor="@color/signal_text_secondary"
|
|
|
|
tools:text="1 week" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2022-05-26 17:32:52 -03:00
|
|
|
<View
|
|
|
|
android:id="@+id/divider"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="2dp"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:layout_marginBottom="16dp"
|
|
|
|
android:background="@color/signal_colorSurfaceVariant"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/mms_warning"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/group_disappearing_messages_row" />
|
|
|
|
|
2020-11-23 16:03:09 -04:00
|
|
|
<LinearLayout
|
2020-05-13 13:41:36 -03:00
|
|
|
android:id="@+id/mms_warning"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:layout_marginStart="@dimen/dsl_settings_gutter"
|
|
|
|
android:layout_marginEnd="@dimen/dsl_settings_gutter"
|
2020-11-23 16:03:09 -04:00
|
|
|
android:orientation="vertical"
|
2020-05-13 13:41:36 -03:00
|
|
|
android:visibility="gone"
|
2022-05-26 17:32:52 -03:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/member_list_header"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/divider"
|
|
|
|
app:layout_goneMarginTop="23dp"
|
2020-11-23 16:03:09 -04:00
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:background="@drawable/rounded_outline_12"
|
2020-11-23 16:03:09 -04:00
|
|
|
android:paddingStart="16dp"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:paddingTop="16dp"
|
2020-11-23 16:03:09 -04:00
|
|
|
android:paddingEnd="16dp"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:paddingBottom="16dp"
|
2022-10-13 11:33:13 -04:00
|
|
|
android:text="@string/AddGroupDetailsFragment__youve_selected_a_contact_that_doesnt_support_signal_groups_mms_removal"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.BodyMedium"
|
|
|
|
android:textColor="@color/signal_colorOnSurfaceVariant" />
|
2020-11-23 16:03:09 -04:00
|
|
|
|
|
|
|
</LinearLayout>
|
2020-05-13 13:41:36 -03:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/member_list_header"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:layout_marginStart="@dimen/dsl_settings_gutter"
|
|
|
|
android:layout_marginEnd="@dimen/dsl_settings_gutter"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:minHeight="52sp"
|
2020-05-13 13:41:36 -03:00
|
|
|
android:text="@string/AddGroupDetailsFragment__members"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.TitleSmall"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/mms_warning" />
|
2020-05-13 13:41:36 -03:00
|
|
|
|
2021-01-08 17:31:23 -04:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/add_later"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:layout_marginStart="@dimen/dsl_settings_gutter"
|
|
|
|
android:layout_marginEnd="@dimen/dsl_settings_gutter"
|
2021-01-08 17:31:23 -04:00
|
|
|
android:text="@string/AddGroupDetailsFragment__you_can_add_or_invite_friends_after_creating_this_group"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.BodyMedium"
|
|
|
|
android:textColor="@color/signal_colorOnSurfaceVariant"
|
2021-01-08 17:31:23 -04:00
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/member_list_header" />
|
|
|
|
|
2020-05-13 13:41:36 -03:00
|
|
|
<org.thoughtcrime.securesms.groups.ui.GroupMemberListView
|
|
|
|
android:id="@+id/member_list"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/member_list_header" />
|
|
|
|
|
2022-05-26 17:32:52 -03:00
|
|
|
<org.thoughtcrime.securesms.util.views.CircularProgressMaterialButton
|
2020-05-13 13:41:36 -03:00
|
|
|
android:id="@+id/create"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginBottom="16dp"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:textAllCaps="false"
|
|
|
|
app:circularProgressMaterialButton__label="@string/AddGroupDetailsFragment__create"
|
2020-05-13 13:41:36 -03:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|