<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:id="@+id/root">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@drawable/background_16_round_4dp"
        android:paddingLeft="10dp"
        android:paddingTop="10dp"
        android:paddingRight="10dp"
        android:layout_margin="10dp">

        <TextView android:id="@+id/text_title"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            tools:text="Do you know?"
            android:fontFamily="@font/inter_semibold"
            android:textSize="15sp"
            android:textColor="@color/white"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            app:layout_constraintRight_toLeftOf="@id/text_counter" />

        <TextView android:id="@+id/text_counter"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            tools:text="1/4"
            android:fontFamily="@font/inter_regular"
            android:textSize="12dp"
            android:textColor="#585656"
            app:layout_constraintTop_toTopOf="parent"
            app:layout_constraintRight_toRightOf="parent" />

        <TextView android:id="@+id/text_body"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            tools:text="Our app now supports dark mode for a better viewing experience. Check it out in your settings. Enjoy the new look!"
            android:fontFamily="@font/inter_light"
            android:textSize="14sp"
            android:textColor="#9D9D9D"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintTop_toBottomOf="@id/text_title"/>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:layout_constraintTop_toBottomOf="@id/text_body"
            app:layout_constraintRight_toRightOf="parent"
            android:paddingTop="4dp"
            android:paddingBottom="10dp">

            <TextView android:id="@+id/text_time"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                tools:text="2022-03-01"
                android:fontFamily="@font/inter_regular"
                android:textSize="12dp"
                android:textColor="#585656"
                app:layout_constraintTop_toTopOf="parent"
                app:layout_constraintRight_toRightOf="parent" />

            <Space android:layout_width="0dp"
                android:layout_height="0dp"
                android:layout_weight="1" />

            <TextView android:id="@+id/text_never"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/never"
                android:fontFamily="@font/inter_regular"
                android:textSize="14sp"
                android:textColor="@color/colorPrimary"
                android:paddingTop="10dp"
                android:paddingBottom="10dp"
                android:paddingLeft="20dp"
                android:paddingRight="20dp"
                app:layout_constraintTop_toBottomOf="@id/text_body"
                app:layout_constraintRight_toLeftOf="@id/text_close"/>

            <TextView android:id="@+id/text_close"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/dismiss"
                android:fontFamily="@font/inter_regular"
                android:textSize="14sp"
                android:textColor="@color/colorPrimary"
                android:paddingTop="10dp"
                android:paddingBottom="10dp"
                android:paddingLeft="20dp"
                android:paddingRight="20dp"
                app:layout_constraintTop_toBottomOf="@id/text_body"
                app:layout_constraintRight_toLeftOf="@id/button_action"/>

            <FrameLayout android:id="@+id/button_action"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="@drawable/background_button_primary_round_4dp"
                app:layout_constraintTop_toBottomOf="@id/text_body"
                app:layout_constraintRight_toRightOf="parent">

                <TextView android:id="@+id/text_action"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    tools:text="What's New"
                    android:fontFamily="@font/inter_regular"
                    android:textSize="14sp"
                    android:textColor="@color/white"
                    android:paddingTop="10dp"
                    android:paddingBottom="10dp"
                    android:paddingLeft="20dp"
                    android:paddingRight="20dp"
                    app:layout_constraintTop_toBottomOf="@id/text_body"
                    app:layout_constraintRight_toLeftOf="@id/text_close"/>
            </FrameLayout>
        </LinearLayout>
    </androidx.constraintlayout.widget.ConstraintLayout>
</FrameLayout>