2020-06-16 17:42:54 -03:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout 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"
|
|
|
|
tools:context=".recipients.ui.managerecipient.ManageRecipientFragment"
|
|
|
|
tools:theme="@style/TextSecure.LightNoActionBar">
|
|
|
|
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?android:attr/windowBackground"
|
|
|
|
android:fitsSystemWindows="true">
|
|
|
|
|
|
|
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@null"
|
|
|
|
app:contentScrim="?android:attr/windowBackground"
|
|
|
|
app:expandedTitleGravity="center_horizontal"
|
|
|
|
app:expandedTitleMarginTop="156dp"
|
|
|
|
app:expandedTitleTextAppearance="@style/TextAppearance.Signal.Body1.Bold"
|
|
|
|
app:layout_scrollFlags="scroll|exitUntilCollapsed"
|
|
|
|
app:scrimAnimationDuration="200">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingTop="16dp"
|
|
|
|
android:paddingBottom="16dp">
|
|
|
|
|
|
|
|
<Space
|
|
|
|
android:layout_width="128dp"
|
|
|
|
android:layout_height="128dp"
|
|
|
|
android:layout_gravity="center_horizontal" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginTop="14dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textAppearance="@style/TextAppearance.Signal.Body1.Bold" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/username_number"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
|
|
|
android:textColor="?title_text_color_secondary"
|
|
|
|
tools:text="\@spidergwen +1 555-654-6657" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginTop="16dp">
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/recipient_message"
|
|
|
|
style="@style/Widget.Signal.Button.Icon.Circular"
|
|
|
|
android:contentDescription="@string/ManageRecipientActivity_message_description"
|
|
|
|
app:backgroundTint="?recipient_contact_button_color"
|
|
|
|
app:icon="?recipient_message_circle_icon"
|
|
|
|
app:rippleColor="@color/core_ultramarine" />
|
|
|
|
|
2020-06-17 16:41:17 -03:00
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/recipient_video_call"
|
|
|
|
style="@style/Widget.Signal.Button.Icon.Circular"
|
|
|
|
android:layout_marginStart="36dp"
|
|
|
|
android:contentDescription="@string/ManageRecipientActivity_video_call_description"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:backgroundTint="?recipient_contact_button_color"
|
|
|
|
app:icon="?recipient_video_call_circle_icon"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2020-06-16 17:42:54 -03:00
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/recipient_voice_call"
|
|
|
|
style="@style/Widget.Signal.Button.Icon.Circular"
|
|
|
|
android:layout_marginStart="36dp"
|
|
|
|
android:contentDescription="@string/ManageRecipientActivity_voice_call_description"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:backgroundTint="?recipient_contact_button_color"
|
|
|
|
app:icon="?recipient_call_circle_icon"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
2020-06-17 16:41:17 -03:00
|
|
|
android:id="@+id/recipient_insecure_voice_call"
|
2020-06-16 17:42:54 -03:00
|
|
|
style="@style/Widget.Signal.Button.Icon.Circular"
|
|
|
|
android:layout_marginStart="36dp"
|
2020-06-17 16:41:17 -03:00
|
|
|
android:contentDescription="@string/ManageRecipientActivity_insecure_voice_call_description"
|
2020-06-16 17:42:54 -03:00
|
|
|
android:visibility="gone"
|
|
|
|
app:backgroundTint="?recipient_contact_button_color"
|
2020-06-17 16:41:17 -03:00
|
|
|
app:icon="?recipient_insecure_call_circle_icon"
|
2020-06-16 17:42:54 -03:00
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
|
|
android:id="@+id/toolbar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="?attr/actionBarSize"
|
|
|
|
app:contentInsetStartWithNavigation="0dp"
|
|
|
|
app:layout_collapseMode="pin"
|
|
|
|
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/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>
|
|
|
|
|
|
|
|
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
|
|
|
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.AvatarImageView
|
|
|
|
android:id="@+id/recipient_avatar"
|
|
|
|
android:layout_width="128dp"
|
|
|
|
android:layout_height="128dp"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:elevation="8dp"
|
|
|
|
android:transitionName="avatar"
|
|
|
|
app:layout_behavior=".recipients.ui.RecipientSettingsCoordinatorLayoutBehavior" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
|
|
|
android:id="@+id/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"
|
2020-07-14 07:37:09 -07:00
|
|
|
tools:text="Gwen Stacy" />
|
2020-06-16 17:42:54 -03:00
|
|
|
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="?pref_divider"
|
|
|
|
android:fillViewport="true"
|
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<androidx.cardview.widget.CardView
|
2020-07-14 07:37:09 -07:00
|
|
|
android:id="@+id/recipient_contact_card"
|
2020-06-16 17:42:54 -03:00
|
|
|
style="@style/Widget.Signal.CardView.PreferenceRow"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="@dimen/group_manage_fragment_card_vertical_padding"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
2020-07-14 07:37:09 -07:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/recipient_contact_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">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/recipient_contact_text"
|
|
|
|
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/ManageRecipientActivity_this_person_is_in_your_contacts"
|
|
|
|
android:textAlignment="viewStart"
|
|
|
|
android:textAppearance="@style/Signal.Text.Body" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/recipient_contact_icon"
|
|
|
|
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:textAppearance="@style/Signal.Text.Body"
|
|
|
|
android:textColor="@color/ultramarine_text_button"
|
|
|
|
android:tint="?colorAccent"
|
|
|
|
app:srcCompat="@drawable/ic_profile_circle_outline_24"
|
|
|
|
tools:text="Off" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
|
|
|
<androidx.cardview.widget.CardView
|
|
|
|
android:id="@+id/recipient_disappearing_messages_card"
|
|
|
|
style="@style/Widget.Signal.CardView.PreferenceRow"
|
|
|
|
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/recipient_contact_card">
|
|
|
|
|
2020-06-16 17:42:54 -03:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/disappearing_messages_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">
|
|
|
|
|
|
|
|
<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/ManageRecipientActivity_disappearing_messages"
|
|
|
|
android:textAlignment="viewStart"
|
|
|
|
android:textAppearance="@style/Signal.Text.Body" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/disappearing_messages"
|
|
|
|
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:textAppearance="@style/Signal.Text.Body"
|
|
|
|
android:textColor="@color/ultramarine_text_button"
|
|
|
|
tools:text="Off" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
|
|
|
<androidx.cardview.widget.CardView
|
|
|
|
android:id="@+id/recipient_notifications_card"
|
|
|
|
style="@style/Widget.Signal.CardView.PreferenceRow"
|
|
|
|
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/recipient_disappearing_messages_card"
|
|
|
|
app:layout_goneMarginTop="0dp">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:id="@+id/recipient_mute_notifications_row"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/group_manage_fragment_row_height"
|
|
|
|
android:background="?selectableItemBackground"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/recipient_mute_notifications"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:gravity="center_vertical|start"
|
|
|
|
android:text="@string/ManageRecipientActivity_mute_notifications"
|
|
|
|
android:textAlignment="viewStart"
|
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/recipient_mute_notifications_until"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/recipient_mute_notifications_switch"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/recipient_mute_notifications_until"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:textAppearance="@style/TextSecure.SubtitleTextStyle"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/recipient_mute_notifications"
|
|
|
|
tools:text="Until 12:42 PM"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
|
|
android:id="@+id/recipient_mute_notifications_switch"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:clickable="false"
|
|
|
|
android:enabled="false"
|
|
|
|
android:minWidth="48dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/recipient_mute_notifications"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/recipient_custom_notifications_row"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/group_manage_fragment_row_height"
|
|
|
|
android:background="?selectableItemBackground"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/recipient_custom_notifications"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="start|center_vertical"
|
|
|
|
android:paddingStart="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:paddingEnd="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:text="@string/ManageRecipientActivity_custom_notifications"
|
|
|
|
android:textAlignment="viewStart"
|
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/recipient_mute_notifications_switch"
|
|
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/recipient_custom_notifications_button"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center_vertical|end"
|
|
|
|
android:paddingStart="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:paddingEnd="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
|
|
|
android:textColor="@color/ultramarine_text_button"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/recipient_custom_notifications"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/recipient_mute_notifications_switch"
|
|
|
|
tools:text="Off" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
|
|
|
<androidx.cardview.widget.CardView
|
|
|
|
android:id="@+id/recipient_media_card"
|
|
|
|
style="@style/Widget.Signal.CardView.PreferenceRow"
|
|
|
|
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/recipient_notifications_card"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<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">
|
|
|
|
|
|
|
|
<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/ManageRecipientActivity_see_all"
|
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
|
|
|
android:textColor="@color/ultramarine_text_button" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.ThreadPhotoRailView
|
|
|
|
android:id="@+id/recent_photos"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="90dp"
|
|
|
|
android:layout_marginBottom="16dp"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/shared_media_row" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
|
|
|
<androidx.cardview.widget.CardView
|
|
|
|
android:id="@+id/recipient_chat_color"
|
|
|
|
style="@style/Widget.Signal.CardView.PreferenceRow"
|
|
|
|
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/recipient_media_card">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/color_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">
|
|
|
|
|
|
|
|
<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/ManageRecipientActivity_chat_color"
|
|
|
|
android:textAlignment="viewStart"
|
|
|
|
android:textAppearance="@style/Signal.Text.Body" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/color_chip"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginEnd="@dimen/group_manage_fragment_row_horizontal_padding"
|
|
|
|
android:contentDescription="@string/ManageRecipientActivity_chat_color"
|
|
|
|
android:gravity="center"
|
|
|
|
tools:src="@drawable/circle_tintable"
|
|
|
|
tools:tint="@color/core_ultramarine_light" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
|
|
|
<androidx.cardview.widget.CardView
|
|
|
|
android:id="@+id/recipient_membership_card"
|
|
|
|
style="@style/Widget.Signal.CardView.PreferenceRow"
|
|
|
|
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/recipient_chat_color">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/groups_in_common_count"
|
|
|
|
style="@style/TextAppearance.Signal.Subtitle2"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginTop="12dp"
|
2020-06-18 09:49:22 -03:00
|
|
|
android:layout_marginBottom="12dp"
|
2020-06-16 17:42:54 -03:00
|
|
|
android:textColor="?title_text_color_secondary"
|
|
|
|
tools:text="8 groups in common" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/add_to_a_group"
|
|
|
|
android:layout_width="match_parent"
|
2020-06-18 09:49:22 -03:00
|
|
|
android:layout_height="48dp"
|
|
|
|
android:layout_marginTop="0dp"
|
|
|
|
android:layout_marginBottom="8dp"
|
2020-06-16 17:42:54 -03:00
|
|
|
android:background="?selectableItemBackground"
|
|
|
|
android:drawableStart="?attr/manage_group_add_members_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/ManageRecipientActivity_add_to_a_group"
|
|
|
|
android:textAlignment="viewStart"
|
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
|
|
|
android:textColor="@color/ultramarine_text_button" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.groups.ui.GroupMemberListView
|
|
|
|
android:id="@+id/shared_group_list"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
tools:listitem="@layout/group_recipient_list_item" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/toggle_all_groups"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
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/ManageRecipientActivity_view_all_groups"
|
|
|
|
android:textAlignment="viewStart"
|
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
|
|
|
android:textColor="?title_text_color_secondary"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
|
|
|
<androidx.cardview.widget.CardView
|
|
|
|
android:id="@+id/recipient_block_and_leave_card"
|
|
|
|
style="@style/Widget.Signal.CardView.PreferenceRow"
|
|
|
|
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/recipient_membership_card">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/view_safety_number"
|
|
|
|
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/ManageRecipientActivity_view_safety_number"
|
|
|
|
android:textAlignment="viewStart"
|
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/block"
|
|
|
|
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/ManageRecipientActivity_block"
|
|
|
|
android:textAlignment="viewStart"
|
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
|
|
|
android:textColor="@color/core_red" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/unblock"
|
|
|
|
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/ManageRecipientActivity_unblock"
|
|
|
|
android:textAlignment="viewStart"
|
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
|
|
|
android:textColor="@color/core_red"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|