2020-04-27 16:27:31 -03:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<androidx.core.widget.NestedScrollView 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"
|
|
|
|
android:background="?attr/pending_member_background"
|
|
|
|
android:fillViewport="true"
|
|
|
|
tools:context=".groups.ui.managegroup.ManageGroupFragment">
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<androidx.cardview.widget.CardView
|
|
|
|
android:id="@+id/group_title_card"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:cardBackgroundColor="?android:attr/windowBackground"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingBottom="16dp">
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.AvatarImageView
|
|
|
|
android:id="@+id/group_avatar"
|
|
|
|
android:layout_width="96dp"
|
|
|
|
android:layout_height="96dp"
|
|
|
|
android:layout_gravity="center_horizontal" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/group_title"
|
|
|
|
style="@style/TextAppearance.Signal.Title2"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginTop="14dp"
|
|
|
|
tools:text="Parkdale Run Crew" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/member_count"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:textSize="14sp"
|
|
|
|
tools:text="12 members (4 invited)" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
|
|
|
<androidx.cardview.widget.CardView
|
|
|
|
android:id="@+id/group_disappearing_messages_card"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
app:cardBackgroundColor="?android:attr/windowBackground"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/group_title_card">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
style="@style/Widget.Signal.Button.TextButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:text="@string/ManageGroupActivity_disappearing_messages" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/disappearing_messages"
|
|
|
|
style="@style/Widget.Signal.Button.TextButton.Ultramarine"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textAlignment="textEnd"
|
|
|
|
tools:text="Off" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
2020-04-30 15:38:58 -03:00
|
|
|
<androidx.cardview.widget.CardView
|
|
|
|
android:id="@+id/group_notifications_card"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
app:cardBackgroundColor="?android:attr/windowBackground"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/group_disappearing_messages_card">
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/group_mute_notifications"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="start|center_vertical"
|
|
|
|
android:paddingStart="12dp"
|
|
|
|
android:paddingEnd="12dp"
|
|
|
|
android:text="@string/ManageGroupActivity_mute_notifications"
|
|
|
|
android:textAppearance="@style/TextAppearance.Signal.Body1"
|
|
|
|
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"
|
|
|
|
app:layout_goneMarginBottom="8dp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/group_mute_notifications_until"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingStart="12dp"
|
|
|
|
android:paddingEnd="12dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/group_custom_notifications"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/group_mute_notifications"
|
|
|
|
tools:text="Until 12:42 PM" />
|
|
|
|
|
|
|
|
<Switch
|
|
|
|
android:id="@+id/group_mute_notifications_switch"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:enabled="false"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/group_custom_notifications_button"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/group_mute_notifications"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/group_custom_notifications"
|
|
|
|
style="@style/Widget.Signal.Button.TextButton"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="start|center_vertical"
|
|
|
|
android:text="@string/ManageGroupActivity_custom_notifications"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/group_mute_notifications_switch"
|
|
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/group_custom_notifications_button"
|
|
|
|
style="@style/Widget.Signal.Button.TextButton.Ultramarine"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:textAlignment="textEnd"
|
|
|
|
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" />
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.Group
|
|
|
|
android:id="@+id/group_custom_notifications_controls"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2020-05-05 12:13:53 -03:00
|
|
|
app:constraint_referenced_ids="group_custom_notifications,group_custom_notifications_button" />
|
2020-04-30 15:38:58 -03:00
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
2020-04-27 16:27:31 -03:00
|
|
|
<androidx.cardview.widget.CardView
|
|
|
|
android:id="@+id/group_media_card"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:cardBackgroundColor="?android:attr/windowBackground"
|
2020-04-30 15:38:58 -03:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/group_notifications_card"
|
2020-04-27 16:27:31 -03:00
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/rail_label"
|
|
|
|
style="@style/Widget.Signal.Button.TextButton.Ultramarine"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:focusableInTouchMode="true"
|
|
|
|
android:padding="16dp"
|
|
|
|
android:text="@string/recipient_preference_activity__shared_media" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.ThreadPhotoRailView
|
|
|
|
android:id="@+id/recent_photos"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="90dp"
|
|
|
|
android:layout_marginBottom="16dp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
|
|
|
<androidx.cardview.widget.CardView
|
|
|
|
android:id="@+id/group_access_control_card"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:cardBackgroundColor="?android:attr/windowBackground"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/group_media_card"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/edit_group_membership_title"
|
|
|
|
style="@style/Widget.Signal.Button.TextButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/ManageGroupActivity_who_can_edit_group_membership" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/edit_group_membership_value"
|
|
|
|
style="@style/Widget.Signal.Button.TextButton.Ultramarine"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textAlignment="textEnd"
|
|
|
|
tools:text="Only admin" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/edit_group_access_title"
|
|
|
|
style="@style/Widget.Signal.Button.TextButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/ManageGroupActivity_who_can_edit_group_info" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/edit_group_access_value"
|
|
|
|
style="@style/Widget.Signal.Button.TextButton.Ultramarine"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textAlignment="textEnd"
|
|
|
|
tools:text="All members" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
|
|
|
<androidx.cardview.widget.CardView
|
|
|
|
android:id="@+id/group_membership_card"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
app:cardBackgroundColor="?android:attr/windowBackground"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/group_access_control_card">
|
|
|
|
|
2020-05-05 12:13:53 -03:00
|
|
|
<LinearLayout
|
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"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/member_count_2"
|
|
|
|
style="@style/TextAppearance.Signal.Body2"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
tools:text="12 members" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/add_members"
|
|
|
|
style="@style/Widget.Signal.Button.TextButton.Drawable.Ultramarine"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:drawableStart="?attr/manage_group_add_members_icon"
|
|
|
|
android:drawablePadding="8dp"
|
|
|
|
android:text="@string/ManageGroupActivity_add_members"
|
|
|
|
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="0dp"
|
|
|
|
app:maxHeight="280dp"
|
|
|
|
tools:listitem="@layout/group_recipient_list_item" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2020-04-27 16:27:31 -03:00
|
|
|
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
|
|
|
<androidx.cardview.widget.CardView
|
|
|
|
android:id="@+id/group_pending_card"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
app:cardBackgroundColor="?android:attr/windowBackground"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/group_membership_card">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/listPending"
|
|
|
|
style="@style/Widget.Signal.Button.TextButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/ManageGroupActivity_pending_group_invites" />
|
|
|
|
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
|
|
|
<androidx.cardview.widget.CardView
|
|
|
|
android:id="@+id/group_block_and_leave_card"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
app:cardBackgroundColor="?android:attr/windowBackground"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/group_pending_card">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/blockGroup"
|
|
|
|
style="@style/Widget.Signal.Button.TextButton.Red"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/ManageGroupActivity_block_group" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/leaveGroup"
|
|
|
|
style="@style/Widget.Signal.Button.TextButton.Red"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/ManageGroupActivity_leave_group" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
</androidx.core.widget.NestedScrollView>
|