2020-01-22 09:22:19 -05:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
|
|
|
<merge
|
|
|
|
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">
|
|
|
|
|
2021-01-08 23:00:41 -05:00
|
|
|
<androidx.cardview.widget.CardView
|
2020-01-22 09:22:19 -05:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2021-01-08 23:00:41 -05:00
|
|
|
android:layout_margin="8dp"
|
|
|
|
android:clipChildren="false"
|
|
|
|
android:clipToPadding="false"
|
|
|
|
app:cardBackgroundColor="@color/megaphone_background_color"
|
|
|
|
app:cardCornerRadius="8dp"
|
|
|
|
app:cardElevation="6dp"
|
|
|
|
app:cardPreventCornerOverlap="false"
|
|
|
|
app:cardUseCompatPadding="true"
|
|
|
|
app:contentPadding="0dp">
|
2020-01-22 09:22:19 -05:00
|
|
|
|
2021-08-02 10:26:51 -03:00
|
|
|
<ScrollView
|
2021-01-08 23:00:41 -05:00
|
|
|
android:layout_width="match_parent"
|
2021-08-02 10:26:51 -03:00
|
|
|
android:layout_height="wrap_content">
|
2020-01-22 09:22:19 -05:00
|
|
|
|
2021-08-02 10:26:51 -03:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:layout_width="match_parent"
|
2021-01-08 23:00:41 -05:00
|
|
|
android:layout_height="wrap_content"
|
2021-08-02 10:26:51 -03:00
|
|
|
android:clickable="true"
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
android:paddingTop="16dp"
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
android:paddingBottom="8dp">
|
2020-01-22 09:22:19 -05:00
|
|
|
|
2021-08-02 10:26:51 -03:00
|
|
|
<com.airbnb.lottie.LottieAnimationView
|
|
|
|
android:id="@+id/basic_megaphone_image"
|
|
|
|
android:layout_width="64dp"
|
|
|
|
android:layout_height="64dp"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:scaleType="centerInside"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:src="@tools:sample/avatars" />
|
2020-01-22 09:22:19 -05:00
|
|
|
|
2021-08-02 10:26:51 -03:00
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
|
|
|
android:id="@+id/basic_megaphone_title"
|
|
|
|
style="@style/Signal.Text.Body"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:fontFamily="sans-serif-medium"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/basic_megaphone_image"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/basic_megaphone_image"
|
|
|
|
tools:text="Avengers HQ Destroyed!" />
|
2021-01-08 23:00:41 -05:00
|
|
|
|
2021-08-02 10:26:51 -03:00
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
|
|
|
android:id="@+id/basic_megaphone_body"
|
|
|
|
style="@style/Signal.Text.Preview"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:textColor="@color/megaphone_body_text_color"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/basic_megaphone_title"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/basic_megaphone_title"
|
|
|
|
tools:text="Where was the 'hero' Spider-Man during the battle?" />
|
2021-01-08 23:00:41 -05:00
|
|
|
|
2021-08-02 10:26:51 -03:00
|
|
|
<androidx.constraintlayout.widget.Barrier
|
|
|
|
android:id="@+id/basic_megaphone_content_barrier"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:barrierDirection="bottom"
|
|
|
|
app:constraint_referenced_ids="basic_megaphone_image,basic_megaphone_body,basic_megaphone_title" />
|
|
|
|
|
2022-05-26 17:32:52 -03:00
|
|
|
<com.google.android.material.button.MaterialButton
|
2021-08-02 10:26:51 -03:00
|
|
|
android:id="@+id/basic_megaphone_action"
|
2022-05-26 17:32:52 -03:00
|
|
|
style="@style/Signal.Widget.Button.Large.Secondary"
|
2021-08-02 10:26:51 -03:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="4dp"
|
2021-12-08 13:22:36 -05:00
|
|
|
android:textAllCaps="false"
|
2021-08-02 10:26:51 -03:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/basic_megaphone_secondary"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/basic_megaphone_content_barrier"
|
|
|
|
tools:text="*sigh*"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2022-05-26 17:32:52 -03:00
|
|
|
<com.google.android.material.button.MaterialButton
|
2021-08-02 10:26:51 -03:00
|
|
|
android:id="@+id/basic_megaphone_secondary"
|
2022-05-26 17:32:52 -03:00
|
|
|
style="@style/Signal.Widget.Button.Large.Secondary"
|
2021-08-02 10:26:51 -03:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:text="@string/Megaphones_remind_me_later"
|
2021-12-08 13:22:36 -05:00
|
|
|
android:textAllCaps="false"
|
2021-08-02 10:26:51 -03:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/basic_megaphone_action"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/basic_megaphone_content_barrier"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2021-01-08 23:00:41 -05:00
|
|
|
|
2021-08-02 10:26:51 -03:00
|
|
|
</ScrollView>
|
2020-01-22 09:22:19 -05:00
|
|
|
|
2021-01-08 23:00:41 -05:00
|
|
|
</androidx.cardview.widget.CardView>
|
2020-01-22 09:22:19 -05:00
|
|
|
|
|
|
|
</merge>
|