2020-04-27 16:27:31 -03:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-05-26 12:06:30 -03:00
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2020-04-27 16:27:31 -03:00
|
|
|
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"
|
|
|
|
tools:context=".groups.ui.managegroup.ManageGroupFragment">
|
|
|
|
|
2020-05-26 12:06:30 -03:00
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
2020-04-27 16:27:31 -03:00
|
|
|
android:layout_width="match_parent"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?android:attr/windowBackground"
|
|
|
|
android:fitsSystemWindows="true">
|
2020-04-27 16:27:31 -03:00
|
|
|
|
2020-05-26 12:06:30 -03:00
|
|
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
2020-04-27 16:27:31 -03:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:background="@null"
|
|
|
|
app:contentScrim="?android:attr/windowBackground"
|
|
|
|
app:expandedTitleGravity="center_horizontal"
|
|
|
|
app:expandedTitleMarginTop="156dp"
|
|
|
|
app:expandedTitleTextAppearance="@style/TextAppearance.Signal.Body1.Bold"
|
2020-05-26 16:34:11 -03:00
|
|
|
app:layout_scrollFlags="scroll|exitUntilCollapsed"
|
|
|
|
app:scrimAnimationDuration="200">
|
2020-04-27 16:27:31 -03:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:paddingTop="16dp"
|
2020-04-27 16:27:31 -03:00
|
|
|
android:paddingBottom="16dp">
|
|
|
|
|
2020-06-02 15:02:35 -03:00
|
|
|
<Space
|
2020-05-07 10:39:40 -03:00
|
|
|
android:layout_width="128dp"
|
|
|
|
android:layout_height="128dp"
|
2020-04-27 16:27:31 -03:00
|
|
|
android:layout_gravity="center_horizontal" />
|
|
|
|
|
2020-06-02 15:02:35 -03:00
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
2020-04-27 16:27:31 -03:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginTop="14dp"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textAppearance="@style/TextAppearance.Signal.Body1.Bold" />
|
2020-04-27 16:27:31 -03:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/member_count"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
2020-05-26 16:34:11 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
2020-05-07 10:39:40 -03:00
|
|
|
android:textColor="?title_text_color_secondary"
|
2020-04-27 16:27:31 -03:00
|
|
|
tools:text="12 members (4 invited)" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
2020-05-26 12:06:30 -03:00
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
|
|
android:id="@+id/toolbar"
|
2020-04-27 16:27:31 -03:00
|
|
|
android:layout_width="match_parent"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:layout_height="?attr/actionBarSize"
|
2020-06-02 15:02:35 -03:00
|
|
|
app:contentInsetStartWithNavigation="0dp"
|
2020-05-26 12:06:30 -03:00
|
|
|
app:layout_collapseMode="pin"
|
2020-06-02 15:02:35 -03:00
|
|
|
app:navigationIcon="@drawable/ic_arrow_left_24">
|
|
|
|
|
|
|
|
<Space
|
|
|
|
android:id="@+id/avatar_target"
|
|
|
|
android:layout_width="36dp"
|
|
|
|
android:layout_height="36dp"
|
|
|
|
android:layout_gravity="center_vertical|start"
|
|
|
|
android:layout_marginEnd="10dp" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
|
|
|
android:id="@+id/group_name_target"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical|end"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textAppearance="@style/TextAppearance.Signal.Body1.Bold" />
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.Toolbar>
|
2020-04-27 16:27:31 -03:00
|
|
|
|
2020-05-26 12:06:30 -03:00
|
|
|
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
2020-04-27 16:27:31 -03:00
|
|
|
|
2020-05-26 12:06:30 -03:00
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
2020-04-27 16:27:31 -03:00
|
|
|
|
2020-06-02 15:02:35 -03:00
|
|
|
<org.thoughtcrime.securesms.components.AvatarImageView
|
|
|
|
android:id="@+id/group_avatar"
|
|
|
|
android:layout_width="128dp"
|
|
|
|
android:layout_height="128dp"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:elevation="8dp"
|
2020-06-02 16:09:48 -03:00
|
|
|
android:transitionName="avatar"
|
2020-06-02 15:02:35 -03:00
|
|
|
app:layout_behavior=".groups.ui.creategroup.GroupSettingsCoordinatorLayoutBehavior" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
|
|
|
android:id="@+id/group_name"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginTop="158dp"
|
|
|
|
android:elevation="8dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textAppearance="@style/TextAppearance.Signal.Body1.Bold"
|
|
|
|
tools:text="Parkdale Run Crew" />
|
|
|
|
|
2020-05-26 12:06:30 -03:00
|
|
|
<androidx.core.widget.NestedScrollView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-06-07 07:42:28 -03:00
|
|
|
android:background="?pref_divider"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:fillViewport="true"
|
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
2020-04-27 16:27:31 -03:00
|
|
|
|
2020-05-26 12:06:30 -03:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2020-04-30 15:38:58 -03:00
|
|
|
android:layout_width="match_parent"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:layout_height="wrap_content">
|
2020-04-30 15:38:58 -03:00
|
|
|
|
2020-05-26 12:06:30 -03:00
|
|
|
<androidx.cardview.widget.CardView
|
|
|
|
android:id="@+id/group_disappearing_messages_card"
|
2020-05-26 16:34:11 -03:00
|
|
|
style="@style/Widget.Signal.CardView.PreferenceRow"
|
2020-04-30 15:38:58 -03:00
|
|
|
android:layout_width="match_parent"
|
2020-05-07 10:39:40 -03:00
|
|
|
android:layout_height="wrap_content"
|
2020-06-07 07:42:28 -03:00
|
|
|
android:layout_marginTop="@dimen/group_manage_fragment_card_vertical_padding"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
2020-04-30 15:38:58 -03:00
|
|
|
|
2020-05-07 10:39:40 -03:00
|
|
|
<LinearLayout
|
2020-05-26 12:06:30 -03:00
|
|
|
android:id="@+id/disappearing_messages_row"
|
2020-05-07 10:39:40 -03:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/group_manage_fragment_row_height"
|
|
|
|
android:background="?selectableItemBackground"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:orientation="horizontal">
|
2020-05-07 10:39:40 -03:00
|
|
|
|
|
|
|
<TextView
|
2020-06-02 15:02:35 -03:00
|
|
|
android:layout_width="0dp"
|
2020-05-07 10:39:40 -03:00
|
|
|
android:layout_height="match_parent"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:layout_gravity="center_horizontal"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="center_vertical|start"
|
|
|
|
android:paddingStart="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:paddingEnd="@dimen/group_manage_fragment_row_horizontal_padding"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:text="@string/ManageGroupActivity_disappearing_messages"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:textAlignment="viewStart"
|
2020-05-26 16:34:11 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.Body" />
|
2020-05-07 10:39:40 -03:00
|
|
|
|
|
|
|
<TextView
|
2020-05-26 12:06:30 -03:00
|
|
|
android:id="@+id/disappearing_messages"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:layout_width="wrap_content"
|
2020-05-07 10:39:40 -03:00
|
|
|
android:layout_height="match_parent"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:gravity="center"
|
|
|
|
android:minWidth="48dp"
|
|
|
|
android:paddingStart="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:paddingEnd="@dimen/group_manage_fragment_row_horizontal_padding"
|
2020-05-26 16:34:11 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
2020-05-07 10:39:40 -03:00
|
|
|
android:textColor="@color/ultramarine_text_button"
|
|
|
|
tools:text="Off" />
|
2020-04-30 15:38:58 -03:00
|
|
|
|
2020-05-07 10:39:40 -03:00
|
|
|
</LinearLayout>
|
2020-04-30 15:38:58 -03:00
|
|
|
|
2020-05-26 12:06:30 -03:00
|
|
|
</androidx.cardview.widget.CardView>
|
2020-04-30 15:38:58 -03:00
|
|
|
|
2020-05-26 12:06:30 -03:00
|
|
|
<androidx.cardview.widget.CardView
|
|
|
|
android:id="@+id/group_notifications_card"
|
2020-05-26 16:34:11 -03:00
|
|
|
style="@style/Widget.Signal.CardView.PreferenceRow"
|
2020-04-27 16:27:31 -03:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:layout_marginTop="@dimen/group_manage_fragment_card_vertical_padding"
|
2020-06-02 16:09:48 -03:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/group_disappearing_messages_card"
|
|
|
|
app:layout_goneMarginTop="0dp">
|
2020-04-27 16:27:31 -03:00
|
|
|
|
2020-05-26 12:06:30 -03:00
|
|
|
<LinearLayout
|
2020-04-27 16:27:31 -03:00
|
|
|
android:layout_width="match_parent"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
2020-04-27 16:27:31 -03:00
|
|
|
|
2020-05-26 12:06:30 -03:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:id="@+id/group_mute_notifications_row"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/group_manage_fragment_row_height"
|
|
|
|
android:background="?selectableItemBackground"
|
|
|
|
android:clickable="true"
|
2020-05-26 16:34:11 -03:00
|
|
|
android:focusable="true">
|
2020-05-26 12:06:30 -03:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/group_mute_notifications"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:layout_marginStart="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:gravity="center_vertical|start"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:text="@string/ManageGroupActivity_mute_notifications"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:textAlignment="viewStart"
|
2020-05-26 16:34:11 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
2020-05-26 12:06:30 -03:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/group_mute_notifications_until"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/group_mute_notifications_switch"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/group_mute_notifications_until"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:layout_marginStart="@dimen/group_manage_fragment_row_horizontal_padding"
|
2020-05-26 16:34:11 -03:00
|
|
|
android:textAppearance="@style/TextSecure.SubtitleTextStyle"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/group_mute_notifications"
|
|
|
|
tools:text="Until 12:42 PM"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2020-05-26 16:34:11 -03:00
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
2020-05-26 12:06:30 -03:00
|
|
|
android:id="@+id/group_mute_notifications_switch"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:layout_width="wrap_content"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:clickable="false"
|
|
|
|
android:enabled="false"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:minWidth="48dp"
|
2020-05-26 12:06:30 -03:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/group_mute_notifications"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/group_custom_notifications_row"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/group_manage_fragment_row_height"
|
|
|
|
android:background="?selectableItemBackground"
|
|
|
|
android:clickable="true"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:focusable="true">
|
2020-05-26 12:06:30 -03:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/group_custom_notifications"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:layout_width="0dp"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:layout_height="match_parent"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:layout_weight="1"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:gravity="start|center_vertical"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:paddingStart="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:paddingEnd="@dimen/group_manage_fragment_row_horizontal_padding"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:text="@string/ManageGroupActivity_custom_notifications"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:textAlignment="viewStart"
|
2020-05-26 16:34:11 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
2020-05-26 12:06:30 -03:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/group_mute_notifications_switch"
|
|
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/group_custom_notifications_button"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:layout_width="wrap_content"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center_vertical|end"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:paddingStart="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:paddingEnd="@dimen/group_manage_fragment_row_horizontal_padding"
|
2020-05-26 16:34:11 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:textColor="@color/ultramarine_text_button"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/group_custom_notifications"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/group_mute_notifications_switch"
|
|
|
|
tools:text="Off" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2020-04-27 16:27:31 -03:00
|
|
|
|
2020-05-26 12:06:30 -03:00
|
|
|
</LinearLayout>
|
2020-04-27 16:27:31 -03:00
|
|
|
|
2020-05-26 12:06:30 -03:00
|
|
|
</androidx.cardview.widget.CardView>
|
2020-04-27 16:27:31 -03:00
|
|
|
|
2020-05-26 12:06:30 -03:00
|
|
|
<androidx.cardview.widget.CardView
|
|
|
|
android:id="@+id/group_media_card"
|
2020-05-26 16:34:11 -03:00
|
|
|
style="@style/Widget.Signal.CardView.PreferenceRow"
|
2020-04-27 16:27:31 -03:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:layout_marginTop="@dimen/group_manage_fragment_card_vertical_padding"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/group_notifications_card"
|
|
|
|
tools:visibility="visible">
|
2020-04-27 16:27:31 -03:00
|
|
|
|
2020-06-07 08:11:25 -03:00
|
|
|
<LinearLayout
|
2020-04-27 16:27:31 -03:00
|
|
|
android:layout_width="match_parent"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
2020-05-07 10:39:40 -03:00
|
|
|
|
2020-06-07 08:11:25 -03:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/shared_media_row"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/group_manage_fragment_row_height"
|
|
|
|
android:background="?selectableItemBackground"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:orientation="horizontal">
|
2020-05-26 16:34:11 -03:00
|
|
|
|
2020-06-07 08:11:25 -03:00
|
|
|
<TextView
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="center_vertical|start"
|
|
|
|
android:paddingStart="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:paddingEnd="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:text="@string/recipient_preference_activity__shared_media"
|
|
|
|
android:textAlignment="viewStart"
|
|
|
|
android:textAppearance="@style/Signal.Text.Body" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
|
|
|
android:minWidth="48dp"
|
|
|
|
android:paddingStart="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:paddingEnd="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:text="@string/ManageGroupActivity_see_all"
|
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
|
|
|
android:textColor="@color/ultramarine_text_button" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2020-04-27 16:27:31 -03:00
|
|
|
|
2020-05-26 12:06:30 -03:00
|
|
|
<org.thoughtcrime.securesms.components.ThreadPhotoRailView
|
|
|
|
android:id="@+id/recent_photos"
|
2020-04-27 16:27:31 -03:00
|
|
|
android:layout_width="match_parent"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:layout_height="90dp"
|
2020-05-26 16:34:11 -03:00
|
|
|
android:layout_marginBottom="16dp"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-06-07 08:11:25 -03:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/shared_media_row" />
|
2020-04-27 16:27:31 -03:00
|
|
|
|
2020-06-07 08:11:25 -03:00
|
|
|
</LinearLayout>
|
2020-04-27 16:27:31 -03:00
|
|
|
|
2020-05-26 12:06:30 -03:00
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
|
|
|
<androidx.cardview.widget.CardView
|
|
|
|
android:id="@+id/group_access_control_card"
|
2020-05-26 16:34:11 -03:00
|
|
|
style="@style/Widget.Signal.CardView.PreferenceRow"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="@dimen/group_manage_fragment_card_vertical_padding"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/group_media_card"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
2020-04-27 16:27:31 -03:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/edit_group_membership_row"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/group_manage_fragment_row_height"
|
|
|
|
android:background="?selectableItemBackground"
|
|
|
|
android:clickable="true"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:focusable="true">
|
2020-05-26 12:06:30 -03:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/edit_group_membership_title"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:layout_width="0dp"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:layout_height="match_parent"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:layout_weight="1"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:gravity="center_vertical|start"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:paddingStart="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:paddingEnd="@dimen/group_manage_fragment_row_horizontal_padding"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:text="@string/ManageGroupActivity_who_can_edit_group_membership"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:textAlignment="viewStart"
|
2020-05-26 16:34:11 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.Body" />
|
2020-05-26 12:06:30 -03:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/edit_group_membership_value"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:layout_width="wrap_content"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:layout_height="match_parent"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:minWidth="48dp"
|
|
|
|
android:paddingStart="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:paddingEnd="@dimen/group_manage_fragment_row_horizontal_padding"
|
2020-05-26 16:34:11 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:textColor="@color/ultramarine_text_button"
|
|
|
|
tools:text="Only admin" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/edit_group_access_row"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/group_manage_fragment_row_height"
|
|
|
|
android:background="?selectableItemBackground"
|
|
|
|
android:clickable="true"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:focusable="true">
|
2020-05-26 12:06:30 -03:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/edit_group_access_title"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:layout_width="0dp"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:layout_height="match_parent"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:layout_weight="1"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:gravity="center_vertical|start"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:paddingStart="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:paddingEnd="@dimen/group_manage_fragment_row_horizontal_padding"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:text="@string/ManageGroupActivity_who_can_edit_group_info"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:textAlignment="viewStart"
|
2020-05-26 16:34:11 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.Body" />
|
2020-05-26 12:06:30 -03:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/edit_group_access_value"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:layout_width="wrap_content"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:layout_height="match_parent"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:minWidth="48dp"
|
|
|
|
android:paddingStart="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:paddingEnd="@dimen/group_manage_fragment_row_horizontal_padding"
|
2020-05-26 16:34:11 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:textColor="@color/ultramarine_text_button"
|
|
|
|
tools:text="All members" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
|
|
|
<androidx.cardview.widget.CardView
|
|
|
|
android:id="@+id/group_membership_card"
|
2020-05-26 16:34:11 -03:00
|
|
|
style="@style/Widget.Signal.CardView.PreferenceRow"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="@dimen/group_manage_fragment_card_vertical_padding"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/group_access_control_card">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
2020-05-07 10:39:40 -03:00
|
|
|
|
|
|
|
<TextView
|
2020-05-26 12:06:30 -03:00
|
|
|
android:id="@+id/member_count_2"
|
|
|
|
style="@style/TextAppearance.Signal.Subtitle2"
|
2020-04-27 16:27:31 -03:00
|
|
|
android:layout_width="wrap_content"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:layout_marginBottom="4dp"
|
|
|
|
android:textColor="?title_text_color_secondary"
|
|
|
|
tools:text="12 members" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/add_members"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="64dp"
|
|
|
|
android:background="?selectableItemBackground"
|
|
|
|
android:drawableStart="?attr/manage_group_add_members_icon"
|
|
|
|
android:drawablePadding="8dp"
|
2020-05-07 10:39:40 -03:00
|
|
|
android:gravity="center_vertical|start"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:paddingStart="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:paddingEnd="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:text="@string/ManageGroupActivity_add_members"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:textAlignment="viewStart"
|
2020-05-26 16:34:11 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:textColor="@color/ultramarine_text_button"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.groups.ui.GroupMemberListView
|
|
|
|
android:id="@+id/group_members"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
tools:listitem="@layout/group_recipient_list_item" />
|
2020-04-27 16:27:31 -03:00
|
|
|
|
2020-05-07 10:39:40 -03:00
|
|
|
<TextView
|
2020-05-26 12:06:30 -03:00
|
|
|
android:id="@+id/toggle_all_members"
|
2020-04-27 16:27:31 -03:00
|
|
|
android:layout_width="match_parent"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:layout_height="64dp"
|
|
|
|
android:background="?selectableItemBackground"
|
|
|
|
android:drawableStart="?attr/manage_group_view_all_icon"
|
|
|
|
android:drawablePadding="8dp"
|
|
|
|
android:gravity="center_vertical|start"
|
|
|
|
android:paddingStart="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:paddingEnd="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:text="@string/ManageGroupActivity_view_all_members"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:textAlignment="viewStart"
|
2020-05-26 16:34:11 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
|
|
|
android:textColor="?title_text_color_secondary"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible" />
|
2020-04-27 16:27:31 -03:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2020-05-26 12:06:30 -03:00
|
|
|
</androidx.cardview.widget.CardView>
|
2020-04-27 16:27:31 -03:00
|
|
|
|
2020-05-26 12:06:30 -03:00
|
|
|
<androidx.cardview.widget.CardView
|
|
|
|
android:id="@+id/group_pending_card"
|
2020-05-26 16:34:11 -03:00
|
|
|
style="@style/Widget.Signal.CardView.PreferenceRow"
|
2020-04-27 16:27:31 -03:00
|
|
|
android:layout_width="match_parent"
|
2020-05-05 12:13:53 -03:00
|
|
|
android:layout_height="wrap_content"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:layout_marginTop="@dimen/group_manage_fragment_card_vertical_padding"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/group_membership_card">
|
2020-05-05 12:13:53 -03:00
|
|
|
|
2020-05-26 14:25:53 -03:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/pending_members_row"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/group_manage_fragment_row_height"
|
|
|
|
android:background="?selectableItemBackground"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:orientation="horizontal">
|
2020-05-26 14:25:53 -03:00
|
|
|
|
|
|
|
<TextView
|
2020-06-02 15:02:35 -03:00
|
|
|
android:layout_width="0dp"
|
2020-05-26 14:25:53 -03:00
|
|
|
android:layout_height="match_parent"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:layout_weight="1"
|
2020-05-26 14:25:53 -03:00
|
|
|
android:gravity="center_vertical|start"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:paddingStart="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:paddingEnd="@dimen/group_manage_fragment_row_horizontal_padding"
|
2020-05-26 14:25:53 -03:00
|
|
|
android:text="@string/ManageGroupActivity_pending_group_invites"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:textAlignment="viewStart"
|
2020-06-01 15:11:23 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.Body" />
|
2020-05-26 14:25:53 -03:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/pending_members_count"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:layout_width="wrap_content"
|
2020-05-26 14:25:53 -03:00
|
|
|
android:layout_height="match_parent"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:gravity="center_vertical|start"
|
|
|
|
android:minWidth="48dp"
|
|
|
|
android:paddingStart="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:paddingEnd="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:textAlignment="viewStart"
|
2020-06-01 15:11:23 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
2020-05-26 14:25:53 -03:00
|
|
|
android:textColor="@color/ultramarine_text_button"
|
|
|
|
tools:text="@string/ManageGroupActivity_none" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2020-05-05 12:13:53 -03:00
|
|
|
|
2020-05-26 12:06:30 -03:00
|
|
|
</androidx.cardview.widget.CardView>
|
2020-05-05 12:13:53 -03:00
|
|
|
|
2020-05-26 12:06:30 -03:00
|
|
|
<androidx.cardview.widget.CardView
|
|
|
|
android:id="@+id/group_block_and_leave_card"
|
2020-05-26 16:34:11 -03:00
|
|
|
style="@style/Widget.Signal.CardView.PreferenceRow"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:layout_width="match_parent"
|
2020-04-27 16:27:31 -03:00
|
|
|
android:layout_height="wrap_content"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:layout_marginTop="@dimen/group_manage_fragment_card_vertical_padding"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/group_pending_card">
|
2020-04-27 16:27:31 -03:00
|
|
|
|
2020-05-26 12:06:30 -03:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical">
|
2020-04-27 16:27:31 -03:00
|
|
|
|
2020-05-26 12:06:30 -03:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/blockGroup"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/group_manage_fragment_row_height"
|
|
|
|
android:background="?selectableItemBackground"
|
|
|
|
android:gravity="center_vertical|start"
|
|
|
|
android:paddingStart="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:paddingEnd="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:text="@string/ManageGroupActivity_block_group"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:textAlignment="viewStart"
|
2020-05-26 16:34:11 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:textColor="@color/core_red" />
|
2020-04-27 16:27:31 -03:00
|
|
|
|
2020-06-07 13:40:05 -03:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/unblockGroup"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/group_manage_fragment_row_height"
|
|
|
|
android:background="?selectableItemBackground"
|
|
|
|
android:gravity="center_vertical|start"
|
|
|
|
android:paddingStart="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:paddingEnd="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:text="@string/ManageGroupActivity_unblock_group"
|
|
|
|
android:textAlignment="viewStart"
|
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
|
|
|
android:textColor="@color/core_red"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2020-05-26 12:06:30 -03:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/leaveGroup"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/group_manage_fragment_row_height"
|
|
|
|
android:background="?selectableItemBackground"
|
|
|
|
android:gravity="center_vertical|start"
|
|
|
|
android:paddingStart="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:paddingEnd="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:text="@string/ManageGroupActivity_leave_group"
|
2020-06-02 15:02:35 -03:00
|
|
|
android:textAlignment="viewStart"
|
2020-05-26 16:34:11 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
2020-05-26 12:06:30 -03:00
|
|
|
android:textColor="@color/core_red" />
|
2020-04-27 16:27:31 -03:00
|
|
|
|
2020-05-26 12:06:30 -03:00
|
|
|
</LinearLayout>
|
2020-04-27 16:27:31 -03:00
|
|
|
|
2020-05-26 12:06:30 -03:00
|
|
|
</androidx.cardview.widget.CardView>
|
2020-04-27 16:27:31 -03:00
|
|
|
|
2020-05-26 12:06:30 -03:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2020-04-27 16:27:31 -03:00
|
|
|
|
2020-05-26 12:06:30 -03:00
|
|
|
</androidx.core.widget.NestedScrollView>
|
2020-04-27 16:27:31 -03:00
|
|
|
|
2020-05-26 12:06:30 -03:00
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|