2020-04-22 16:25:28 -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"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-07-21 06:05:16 -03:00
|
|
|
tools:theme="@style/Theme.Signal.RoundedBottomSheet.Light">
|
2020-04-22 16:25:28 -03:00
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.AvatarImageView
|
2020-06-08 13:20:07 -04:00
|
|
|
android:id="@+id/rbs_recipient_avatar"
|
2020-04-22 16:25:28 -03:00
|
|
|
android:layout_width="96dp"
|
|
|
|
android:layout_height="96dp"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintHorizontal_bias="0.5"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
2020-04-27 16:27:31 -03:00
|
|
|
<ProgressBar
|
2020-06-08 13:20:07 -04:00
|
|
|
android:id="@+id/rbs_admin_action_busy"
|
2020-04-27 16:27:31 -03:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:visibility="gone"
|
2020-06-08 13:20:07 -04:00
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/rbs_recipient_avatar"
|
|
|
|
app:layout_constraintEnd_toEndOf="@+id/rbs_recipient_avatar"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/rbs_recipient_avatar"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/rbs_recipient_avatar"
|
2020-04-27 16:27:31 -03:00
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2020-11-12 11:22:00 -05:00
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
2020-06-08 13:20:07 -04:00
|
|
|
android:id="@+id/rbs_full_name"
|
2020-04-22 16:25:28 -03:00
|
|
|
style="@style/TextAppearance.Signal.Body1.Bold"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
2020-11-10 10:20:54 -05:00
|
|
|
android:textColor="@color/signal_text_primary"
|
2020-04-22 16:25:28 -03:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintHorizontal_bias="0.5"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-06-08 13:20:07 -04:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/rbs_recipient_avatar"
|
|
|
|
tools:text="Gwen Stacy" />
|
2020-04-22 16:25:28 -03:00
|
|
|
|
2021-01-21 12:35:00 -05:00
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
|
|
|
android:id="@+id/rbs_about"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center"
|
|
|
|
android:textColor="@color/signal_text_secondary"
|
|
|
|
style="@style/Signal.Text.Body"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/rbs_full_name"
|
|
|
|
tools:text="🕷🕷🕷Hangin' on the web🕷🕷"/>
|
|
|
|
|
2020-11-12 11:22:00 -05:00
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
2020-06-08 13:20:07 -04:00
|
|
|
android:id="@+id/rbs_username_number"
|
2020-05-26 10:05:31 -03:00
|
|
|
style="@style/Signal.Text.Body"
|
2020-04-22 16:25:28 -03:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-11-10 10:20:54 -05:00
|
|
|
android:textColor="@color/signal_text_secondary"
|
2020-04-22 16:25:28 -03:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintHorizontal_bias="0.5"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2021-01-21 12:35:00 -05:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/rbs_about"
|
2020-06-08 13:20:07 -04:00
|
|
|
tools:text="\@spidergwen +1 555-654-6657" />
|
2020-04-22 16:25:28 -03:00
|
|
|
|
2020-06-18 14:34:30 -03:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/rbs_note_to_self_description"
|
|
|
|
style="@style/TextAppearance.Signal.Body2"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:text="@string/ConversationFragment__you_can_add_notes_for_yourself_in_this_conversation"
|
|
|
|
android:textAlignment="center"
|
2020-11-10 10:20:54 -05:00
|
|
|
android:textColor="@color/signal_text_primary"
|
2020-06-18 14:34:30 -03:00
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintHorizontal_bias="0.5"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/rbs_username_number"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2020-04-22 16:25:28 -03:00
|
|
|
<LinearLayout
|
2020-05-07 10:39:40 -03:00
|
|
|
android:layout_width="0dp"
|
2020-04-22 16:25:28 -03:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
2020-05-26 10:05:31 -03:00
|
|
|
android:paddingTop="16dp"
|
2020-04-22 16:25:28 -03:00
|
|
|
android:paddingBottom="16dp"
|
2020-05-07 10:39:40 -03:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2020-04-22 16:25:28 -03:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-06-18 14:34:30 -03:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/rbs_note_to_self_description">
|
2020-04-22 16:25:28 -03:00
|
|
|
|
2020-06-18 13:23:46 -03:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginBottom="12dp">
|
2020-04-22 16:25:28 -03:00
|
|
|
|
2020-06-18 13:23:46 -03:00
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/rbs_message_button"
|
|
|
|
style="@style/Widget.Signal.Button.Icon.Circular"
|
|
|
|
android:contentDescription="@string/RecipientBottomSheet_message_description"
|
2020-11-10 10:20:54 -05:00
|
|
|
app:backgroundTint="@color/recipient_contact_button_color"
|
|
|
|
app:icon="@drawable/ic_message_primary_accent_24"
|
2020-06-18 13:23:46 -03:00
|
|
|
app:rippleColor="@color/core_ultramarine" />
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/rbs_video_call_button"
|
|
|
|
style="@style/Widget.Signal.Button.Icon.Circular"
|
|
|
|
android:layout_marginStart="36dp"
|
|
|
|
android:contentDescription="@string/RecipientBottomSheet_video_call_description"
|
|
|
|
android:visibility="gone"
|
2020-11-10 10:20:54 -05:00
|
|
|
app:backgroundTint="@color/recipient_contact_button_color"
|
|
|
|
app:icon="@drawable/ic_video_primary_accent_24"
|
2020-06-18 13:23:46 -03:00
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/rbs_secure_call_button"
|
|
|
|
style="@style/Widget.Signal.Button.Icon.Circular"
|
|
|
|
android:layout_marginStart="36dp"
|
|
|
|
android:contentDescription="@string/RecipientBottomSheet_voice_call_description"
|
|
|
|
android:visibility="gone"
|
2020-11-10 10:20:54 -05:00
|
|
|
app:backgroundTint="@color/recipient_contact_button_color"
|
|
|
|
app:icon="@drawable/ic_phone_right_primary_accent_24"
|
2020-06-18 13:23:46 -03:00
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/rbs_insecure_call_button"
|
|
|
|
style="@style/Widget.Signal.Button.Icon.Circular"
|
|
|
|
android:layout_marginStart="36dp"
|
|
|
|
android:contentDescription="@string/RecipientBottomSheet_insecure_voice_call_description"
|
|
|
|
android:visibility="gone"
|
2020-11-10 10:20:54 -05:00
|
|
|
app:backgroundTint="@color/recipient_contact_button_color"
|
|
|
|
app:icon="@drawable/ic_phone_right_unlock_primary_accent_24"
|
2020-06-18 13:23:46 -03:00
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2020-04-22 16:25:28 -03:00
|
|
|
|
|
|
|
<Button
|
2020-06-08 13:20:07 -04:00
|
|
|
android:id="@+id/rbs_block_button"
|
2020-04-27 16:27:31 -03:00
|
|
|
style="@style/Widget.Signal.Button.TextButton.Drawable"
|
2020-05-07 10:39:40 -03:00
|
|
|
android:layout_width="match_parent"
|
2020-05-26 10:05:31 -03:00
|
|
|
android:layout_height="56dp"
|
|
|
|
android:paddingStart="20dp"
|
|
|
|
android:paddingEnd="20dp"
|
2020-04-22 16:25:28 -03:00
|
|
|
android:text="@string/RecipientBottomSheet_block"
|
|
|
|
android:visibility="gone"
|
2020-11-10 10:20:54 -05:00
|
|
|
app:drawableStartCompat="@drawable/ic_block_tinted_24"
|
2020-04-22 16:25:28 -03:00
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<Button
|
2020-06-08 13:20:07 -04:00
|
|
|
android:id="@+id/rbs_unblock_button"
|
2020-04-27 16:27:31 -03:00
|
|
|
style="@style/Widget.Signal.Button.TextButton.Drawable"
|
2020-05-07 10:39:40 -03:00
|
|
|
android:layout_width="match_parent"
|
2020-05-26 10:05:31 -03:00
|
|
|
android:layout_height="56dp"
|
|
|
|
android:paddingStart="20dp"
|
|
|
|
android:paddingEnd="20dp"
|
2020-04-22 16:25:28 -03:00
|
|
|
android:text="@string/RecipientBottomSheet_unblock"
|
|
|
|
android:visibility="gone"
|
2020-11-10 10:20:54 -05:00
|
|
|
app:drawableStartCompat="@drawable/ic_block_tinted_24"
|
2020-04-22 16:25:28 -03:00
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<Button
|
2020-06-08 13:20:07 -04:00
|
|
|
android:id="@+id/rbs_add_contact_button"
|
|
|
|
style="@style/Widget.Signal.Button.TextButton.Drawable"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="56dp"
|
|
|
|
android:paddingStart="20dp"
|
|
|
|
android:paddingEnd="20dp"
|
|
|
|
android:text="@string/RecipientBottomSheet_add_to_contacts"
|
|
|
|
android:visibility="gone"
|
2020-11-10 10:20:54 -05:00
|
|
|
app:drawableStartCompat="@drawable/ic_plus_24"
|
2020-06-08 13:20:07 -04:00
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2020-06-09 12:09:59 -03:00
|
|
|
<Button
|
|
|
|
android:id="@+id/rbs_add_to_group_button"
|
|
|
|
style="@style/Widget.Signal.Button.TextButton.Drawable"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="56dp"
|
|
|
|
android:paddingStart="20dp"
|
|
|
|
android:paddingEnd="20dp"
|
2020-06-10 08:47:40 -03:00
|
|
|
android:visibility="gone"
|
2020-11-10 10:20:54 -05:00
|
|
|
app:drawableStartCompat="@drawable/ic_group_24"
|
2020-06-10 12:55:57 -03:00
|
|
|
tools:text="@string/RecipientBottomSheet_add_to_a_group"
|
2020-06-10 08:47:40 -03:00
|
|
|
tools:visibility="visible" />
|
2020-06-09 12:09:59 -03:00
|
|
|
|
2020-06-08 13:20:07 -04:00
|
|
|
<Button
|
|
|
|
android:id="@+id/rbs_view_safety_number_button"
|
2020-04-27 16:27:31 -03:00
|
|
|
style="@style/Widget.Signal.Button.TextButton.Drawable"
|
2020-05-07 10:39:40 -03:00
|
|
|
android:layout_width="match_parent"
|
2020-05-26 10:05:31 -03:00
|
|
|
android:layout_height="56dp"
|
|
|
|
android:paddingStart="20dp"
|
|
|
|
android:paddingEnd="20dp"
|
2020-04-22 16:25:28 -03:00
|
|
|
android:text="@string/RecipientBottomSheet_view_safety_number"
|
2020-06-17 10:49:49 -03:00
|
|
|
android:visibility="gone"
|
2020-11-10 10:20:54 -05:00
|
|
|
app:drawableStartCompat="@drawable/ic_info_tinted_24"
|
2020-06-17 10:49:49 -03:00
|
|
|
tools:visibility="visible" />
|
2020-04-22 16:25:28 -03:00
|
|
|
|
|
|
|
<Button
|
2020-06-08 13:20:07 -04:00
|
|
|
android:id="@+id/rbs_make_group_admin_button"
|
2020-04-27 16:27:31 -03:00
|
|
|
style="@style/Widget.Signal.Button.TextButton.Drawable"
|
2020-05-07 10:39:40 -03:00
|
|
|
android:layout_width="match_parent"
|
2020-05-26 10:05:31 -03:00
|
|
|
android:layout_height="56dp"
|
|
|
|
android:paddingStart="20dp"
|
|
|
|
android:paddingEnd="20dp"
|
2020-04-22 16:25:28 -03:00
|
|
|
android:text="@string/RecipientBottomSheet_make_group_admin"
|
|
|
|
android:visibility="gone"
|
2020-11-10 10:20:54 -05:00
|
|
|
app:drawableStartCompat="@drawable/ic_group_24"
|
2020-04-22 16:25:28 -03:00
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<Button
|
2020-06-08 13:20:07 -04:00
|
|
|
android:id="@+id/rbs_remove_group_admin_button"
|
2020-04-27 16:27:31 -03:00
|
|
|
style="@style/Widget.Signal.Button.TextButton.Drawable"
|
2020-05-07 10:39:40 -03:00
|
|
|
android:layout_width="match_parent"
|
2020-05-26 10:05:31 -03:00
|
|
|
android:layout_height="56dp"
|
|
|
|
android:paddingStart="20dp"
|
|
|
|
android:paddingEnd="20dp"
|
2020-04-22 16:25:28 -03:00
|
|
|
android:text="@string/RecipientBottomSheet_remove_as_admin"
|
|
|
|
android:visibility="gone"
|
2020-11-10 10:20:54 -05:00
|
|
|
app:drawableStartCompat="@drawable/ic_group_24"
|
2020-04-22 16:25:28 -03:00
|
|
|
tools:visibility="visible" />
|
2020-05-07 10:39:40 -03:00
|
|
|
|
2020-04-22 16:25:28 -03:00
|
|
|
<Button
|
2020-06-08 13:20:07 -04:00
|
|
|
android:id="@+id/rbs_remove_from_group_button"
|
2020-04-27 16:27:31 -03:00
|
|
|
style="@style/Widget.Signal.Button.TextButton.Drawable"
|
2020-05-07 10:39:40 -03:00
|
|
|
android:layout_width="match_parent"
|
2020-05-26 10:05:31 -03:00
|
|
|
android:layout_height="56dp"
|
|
|
|
android:paddingStart="20dp"
|
|
|
|
android:paddingEnd="20dp"
|
2020-04-22 16:25:28 -03:00
|
|
|
android:text="@string/RecipientBottomSheet_remove_from_group"
|
|
|
|
android:visibility="gone"
|
2020-11-10 10:20:54 -05:00
|
|
|
app:drawableStartCompat="@drawable/ic_leave_tinted_24"
|
2020-04-22 16:25:28 -03:00
|
|
|
tools:visibility="visible" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|