geekdroid/src/main/res/layout/view_banner_simple.xml
author Da Risk <da_risk@geekorum.com>
Mon, 30 Jan 2023 10:03:33 -0400
changeset 37 8ec7aee97eb6
parent 20 5d8a0555733d
child 61 7a8bbdc7b290
permissions -rw-r--r--
update licence headers

<?xml version="1.0" encoding="utf-8"?>
<!--

    Geekdroid is a utility library for development on the Android
    Platform.

    Copyright (C) 2017-2023 by Frederic-Charles Barthelery.

    This file is part of Geekdroid.

    Geekdroid is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Geekdroid is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Geekdroid.  If not, see <http://www.gnu.org/licenses/>.

-->
<layout 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">

    <data>

    </data>

    <androidx.constraintlayout.widget.ConstraintLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:fitsSystemWindows="true"
            >

        <TextView
                android:id="@+id/message"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_marginEnd="36dp"
                android:layout_marginStart="16dp"
                app:layout_constraintEnd_toStartOf="@+id/positiveBtn"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toTopOf="parent"
                app:layout_constraintBottom_toBottomOf="parent"
                android:textAppearance="?textAppearanceBody2"
                android:singleLine="true"
                tools:text="A new update is available" />

        <com.google.android.material.button.MaterialButton
                android:id="@+id/positiveBtn"
                style="@style/Widget.MaterialComponents.Button.TextButton.Dialog"
                android:layout_width="wrap_content"
                android:layout_height="36dp"
                android:layout_marginTop="10dp"
                android:layout_marginBottom="8dp"
                android:layout_marginEnd="8dp"
                tools:text="Install"
                app:layout_constraintTop_toTopOf="parent"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintEnd_toEndOf="parent"
                />
    </androidx.constraintlayout.widget.ConstraintLayout>

</layout>