51 lines
2.2 KiB
XML
51 lines
2.2 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?><!--
|
||
|
~ Copyright 2023 Signal Messenger, LLC
|
||
|
~ SPDX-License-Identifier: AGPL-3.0-only
|
||
|
-->
|
||
|
<com.google.android.material.card.MaterialCardView 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="wrap_content"
|
||
|
android:layout_marginHorizontal="16dp"
|
||
|
android:layout_marginStart="24dp"
|
||
|
android:layout_marginEnd="24dp"
|
||
|
app:cardCornerRadius="18dp"
|
||
|
app:cardElevation="0dp"
|
||
|
app:strokeColor="@color/signal_colorOutline_38"
|
||
|
app:strokeWidth="1dp">
|
||
|
|
||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent">
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/banner_text"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginHorizontal="16.57dp"
|
||
|
android:layout_marginTop="16dp"
|
||
|
android:layout_marginBottom="10dp"
|
||
|
android:textAppearance="@style/Signal.Text.BodyMedium"
|
||
|
android:textColor="@color/signal_colorOnSurface"
|
||
|
app:layout_constraintBottom_toTopOf="@id/banner_action"
|
||
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
app:layout_constraintTop_toTopOf="parent"
|
||
|
tools:text="Banner text will go here and probably be about something important" />
|
||
|
|
||
|
<com.google.android.material.button.MaterialButton
|
||
|
android:id="@+id/banner_action"
|
||
|
style="@style/Widget.Signal.Button.TextButton"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
app:layout_constraintHorizontal_bias="1"
|
||
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
app:layout_constraintTop_toBottomOf="@id/banner_text"
|
||
|
tools:text="Action" />
|
||
|
|
||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||
|
|
||
|
</com.google.android.material.card.MaterialCardView>
|