96 lines
3.7 KiB
XML
96 lines
3.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout 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:id="@+id/coordinator_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fitsSystemWindows="true"
|
|
tools:context=".MainActivity">
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/app_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="180dp"
|
|
android:fitsSystemWindows="true"
|
|
android:theme="@style/AppTheme.AppBarOverlay">
|
|
|
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
|
android:id="@+id/layout_toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/colorPrimary"
|
|
android:fitsSystemWindows="true"
|
|
app:contentScrim="?attr/colorPrimary"
|
|
app:expandedTitleGravity="center"
|
|
app:layout_scrollFlags="scroll|exitUntilCollapsed"
|
|
app:toolbarId="@+id/toolbar">
|
|
|
|
<!-- android:src="@drawable/ic_banner_foreground"-->
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/image_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fitsSystemWindows="true"
|
|
android:scaleType="centerCrop"
|
|
app:layout_collapseMode="parallax" />
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?attr/actionBarSize"
|
|
app:layout_collapseMode="pin"
|
|
app:popupTheme="@style/AppTheme.PopupOverlay"
|
|
app:title="NoFb Event Scraper" />
|
|
|
|
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
|
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
|
|
android:id="@+id/paste_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="64dp"
|
|
app:layout_anchor="@id/app_bar"
|
|
app:layout_anchorGravity="bottom|end"
|
|
app:icon="@drawable/ic_content_paste"
|
|
android:text="@android:string/paste"
|
|
android:tooltipText="@string/tooltip_paste"
|
|
tools:ignore="UnusedAttribute" />
|
|
|
|
<include layout="@layout/content_main" />
|
|
|
|
<com.google.android.material.bottomappbar.BottomAppBar
|
|
android:id="@+id/bottom_appbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom"
|
|
android:layout_margin="0dp"
|
|
app:contentInsetStart="0dp">
|
|
|
|
|
|
<Button
|
|
android:id="@+id/ok_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:layout_weight="1"
|
|
android:padding="12dp"
|
|
android:text="@string/button_add"
|
|
android:textColor="#FFFFFF"
|
|
app:cornerRadius="24dp"
|
|
app:icon="@drawable/ic_event_available"
|
|
app:iconGravity="textStart"
|
|
app:iconPadding="16dp"
|
|
app:iconTint="#FFFFFF" />
|
|
|
|
</com.google.android.material.bottomappbar.BottomAppBar>
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|