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-04-27 19:35:14 -03:00
|
|
|
tools:theme="@style/Theme.Signal.RecipientBottomSheet.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-04-22 16:25:28 -03:00
|
|
|
<TextView
|
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"
|
|
|
|
android:textColor="?attr/title_text_color_primary"
|
|
|
|
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
|
|
|
|
|
|
|
<TextView
|
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"
|
|
|
|
android:textColor="?attr/title_text_color_secondary"
|
|
|
|
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_full_name"
|
|
|
|
tools:text="\@spidergwen +1 555-654-6657" />
|
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-08 13:20:07 -04:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/rbs_username_number">
|
2020-04-22 16:25:28 -03:00
|
|
|
|
|
|
|
<Button
|
2020-06-08 13:20:07 -04:00
|
|
|
android:id="@+id/rbs_message_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_message"
|
|
|
|
app:drawableStartCompat="?attr/recipient_message_icon" />
|
|
|
|
|
|
|
|
<Button
|
2020-06-08 13:20:07 -04:00
|
|
|
android:id="@+id/rbs_secure_call_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_call"
|
|
|
|
app:drawableStartCompat="?attr/recipient_call_icon" />
|
|
|
|
|
|
|
|
<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"
|
|
|
|
app:drawableStartCompat="?attr/recipient_block_icon"
|
|
|
|
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"
|
|
|
|
app:drawableStartCompat="?attr/recipient_block_icon"
|
|
|
|
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"
|
|
|
|
app:drawableStartCompat="?attr/recipient_add_contact_icon"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<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"
|
|
|
|
app:drawableStartCompat="?attr/recipient_view_safety_icon" />
|
|
|
|
|
|
|
|
<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"
|
|
|
|
app:drawableStartCompat="?attr/recipient_make_admin_icon"
|
|
|
|
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"
|
|
|
|
app:drawableStartCompat="?attr/recipient_make_admin_icon"
|
|
|
|
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"
|
|
|
|
app:drawableStartCompat="?attr/recipient_remove_icon"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|