<?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:custom="http://schemas.android.com/apk/res-auto" | |
android:id="@+id/main_content" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="@android:color/white" | |
android:fitsSystemWindows="true"> | |
<com.google.android.material.appbar.AppBarLayout | |
android:id="@+id/appbar" | |
android:layout_width="match_parent" | |
android:layout_height="250dp" | |
android:fitsSystemWindows="true" | |
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"> | |
<com.google.android.material.appbar.CollapsingToolbarLayout | |
android:background="@drawable/jrntr" | |
android:id="@+id/collapsing_toolbar" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:fitsSystemWindows="true" | |
app:contentScrim="?attr/colorPrimary" | |
app:expandedTitleMarginEnd="64dp" | |
app:expandedTitleMarginStart="48dp" | |
app:expandedTitleTextAppearance="@android:color/transparent" | |
app:layout_scrollFlags="scroll|exitUntilCollapsed"> | |
<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/ThemeOverlay.AppCompat.Light" /> | |
</com.google.android.material.appbar.CollapsingToolbarLayout> | |
</com.google.android.material.appbar.AppBarLayout> | |
<include layout="@layout/content_ablums" /> | |
<ProgressBar | |
android:id="@+id/avi" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
style="?android:attr/progressBarStyle" | |
android:visibility="visible" | |
android:layout_gravity="center" | |
android:layout_centerHorizontal="true" | |
android:layout_centerVertical="true" | |
/> | |
</androidx.coordinatorlayout.widget.CoordinatorLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment