53 lines
2.2 KiB
XML
53 lines
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
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:theme="@style/ThemeOverlay.MaterialComponents.Dark"
|
|
android:id="@+id/layout_appbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="128dp">
|
|
|
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
|
android:id="@+id/layout_toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
app:contentScrim="?attr/colorPrimary"
|
|
app:collapsedTitleTextAppearance="@style/TextAppearance.Mowesta.AppBar.Collapsed"
|
|
app:expandedTitleTextAppearance="@style/TextAppearance.Mowesta.AppBar.Expanded"
|
|
app:expandedTitleMarginStart="40dp"
|
|
app:collapsedTitleGravity="start"
|
|
app:expandedTitleGravity="start"
|
|
app:expandedTitleMarginTop="80dp"
|
|
app:layout_scrollFlags="scroll|exitUntilCollapsed|snap">
|
|
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
<com.locoslab.android.leafless.MapView
|
|
android:id="@+id/map"
|
|
android:layout_centerInParent="true"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
app:layout_collapseMode="parallax"/>
|
|
<View
|
|
android:layout_centerInParent="true"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/primaryTransparent"></View>
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
app:popupTheme="@style/ThemeOverlay.Mowesta.MaterialComponents"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?attr/actionBarSize"
|
|
app:layout_collapseMode="pin" />
|
|
|
|
|
|
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
|
|
|
</com.google.android.material.appbar.AppBarLayout> |