Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <androidx.coordinatorlayout.widget.CoordinatorLayout
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:fitsSystemWindows="true"
- tools:context=".ui.ScrollingActivity">
- <com.google.android.material.appbar.AppBarLayout
- android:id="@+id/app_bar"
- android:layout_width="match_parent"
- android:layout_height="@dimen/app_bar_height"
- android:fitsSystemWindows="true">
- <com.google.android.material.appbar.CollapsingToolbarLayout
- android:id="@+id/toolbar_layout"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@drawable/caption"
- android:fitsSystemWindows="true"
- app:layout_scrollFlags="scroll|exitUntilCollapsed"
- app:toolbarId="@+id/toolbar">
- <View
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@drawable/gradient_offer_categories">
- </View>
- <androidx.appcompat.widget.Toolbar
- android:id="@+id/toolbar"
- android:layout_width="match_parent"
- android:layout_height="?attr/actionBarSize"
- app:layout_collapseMode="pin">
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="end"
- android:layout_marginTop="20dp"
- android:layout_marginEnd="20dp"
- android:src="@drawable/ic_pin_category"
- app:layout_scrollFlags="scroll|enterAlways" />
- </androidx.appcompat.widget.Toolbar>
- <androidx.constraintlayout.widget.ConstraintLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- app:layout_collapseMode="parallax"
- app:layout_scrollFlags="scroll|exitUntilCollapsed">
- <TextView
- android:id="@+id/title"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:fontFamily="@font/pt_sans_bold"
- android:text="Testing"
- android:textColor="@android:color/white"
- android:textSize="24sp"
- app:layout_collapseMode="parallax"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- app:layout_scrollFlags="scroll|snapMargins" />
- <TextView
- android:id="@+id/count"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center|bottom"
- android:layout_marginBottom="50dp"
- android:fontFamily="@font/pt_sans_regular"
- android:text="Testing"
- android:textColor="@android:color/white"
- app:layout_collapseMode="parallax"
- app:layout_constraintEnd_toEndOf="@id/title"
- app:layout_constraintStart_toStartOf="@id/title"
- app:layout_constraintTop_toBottomOf="@id/title"
- app:layout_scrollFlags="scroll|exitUntilCollapsed" />
- </androidx.constraintlayout.widget.ConstraintLayout>
- </com.google.android.material.appbar.CollapsingToolbarLayout>
- </com.google.android.material.appbar.AppBarLayout>
- <include layout="@layout/content_scrolling" />
- </androidx.coordinatorlayout.widget.CoordinatorLayout>
- <!--<RelativeLayout
- android:id="@+id/drawer"
- android:layout_width="300dp"
- android:layout_height="match_parent"
- android:layout_gravity="end"
- android:elevation="1dp"
- android:background="#FFFFFF"
- android:choiceMode="none"
- android:clickable="true">
- <!–<ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:elevation="1dp"
- android:src="@drawable/ic_filter_close"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintStart_toStartOf="parent"/>–>
- </RelativeLayout>-->
- <FrameLayout
- android:id="@+id/frame"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:clickable="true"
- android:elevation="3dp"
- android:focusable="true"
- android:visibility="invisible">
- <ProgressBar
- android:id="@+id/progress"
- android:layout_width="100dp"
- android:layout_height="100dp"
- android:layout_gravity="center"
- android:background="@android:color/transparent"
- android:elevation="3dp"
- android:visibility="invisible"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
- </FrameLayout>
- </androidx.drawerlayout.widget.DrawerLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement