Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 6.21 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:app="http://schemas.android.com/apk/res-auto"
  4.    android:layout_width="match_parent"
  5.    android:layout_height="match_parent">
  6.  
  7.     <androidx.coordinatorlayout.widget.CoordinatorLayout
  8.        xmlns:tools="http://schemas.android.com/tools"
  9.        android:layout_width="match_parent"
  10.        android:layout_height="match_parent"
  11.        android:fitsSystemWindows="true"
  12.        tools:context=".ui.ScrollingActivity">
  13.  
  14.         <com.google.android.material.appbar.AppBarLayout
  15.            android:id="@+id/app_bar"
  16.            android:layout_width="match_parent"
  17.            android:layout_height="@dimen/app_bar_height"
  18.            android:fitsSystemWindows="true">
  19.  
  20.             <com.google.android.material.appbar.CollapsingToolbarLayout
  21.                android:id="@+id/toolbar_layout"
  22.                android:layout_width="match_parent"
  23.                android:layout_height="match_parent"
  24.                android:background="@drawable/caption"
  25.                android:fitsSystemWindows="true"
  26.                app:layout_scrollFlags="scroll|exitUntilCollapsed"
  27.                app:toolbarId="@+id/toolbar">
  28.  
  29.                 <View
  30.                    android:layout_width="match_parent"
  31.                    android:layout_height="match_parent"
  32.                    android:background="@drawable/gradient_offer_categories">
  33.  
  34.                 </View>
  35.  
  36.                 <androidx.appcompat.widget.Toolbar
  37.                    android:id="@+id/toolbar"
  38.                    android:layout_width="match_parent"
  39.                    android:layout_height="?attr/actionBarSize"
  40.                    app:layout_collapseMode="pin">
  41.  
  42.                     <ImageView
  43.                        android:layout_width="wrap_content"
  44.                        android:layout_height="wrap_content"
  45.                        android:layout_gravity="end"
  46.                        android:layout_marginTop="20dp"
  47.                        android:layout_marginEnd="20dp"
  48.                        android:src="@drawable/ic_pin_category"
  49.                        app:layout_scrollFlags="scroll|enterAlways" />
  50.                 </androidx.appcompat.widget.Toolbar>
  51.  
  52.  
  53.                 <androidx.constraintlayout.widget.ConstraintLayout
  54.                    android:layout_width="match_parent"
  55.                    android:layout_height="match_parent"
  56.                    app:layout_collapseMode="parallax"
  57.                    app:layout_scrollFlags="scroll|exitUntilCollapsed">
  58.  
  59.                     <TextView
  60.                        android:id="@+id/title"
  61.                        android:layout_width="wrap_content"
  62.                        android:layout_height="wrap_content"
  63.                        android:layout_gravity="center"
  64.                        android:fontFamily="@font/pt_sans_bold"
  65.                        android:text="Testing"
  66.                        android:textColor="@android:color/white"
  67.                        android:textSize="24sp"
  68.                        app:layout_collapseMode="parallax"
  69.                        app:layout_constraintBottom_toBottomOf="parent"
  70.                        app:layout_constraintEnd_toEndOf="parent"
  71.                        app:layout_constraintStart_toStartOf="parent"
  72.                        app:layout_constraintTop_toTopOf="parent"
  73.                        app:layout_scrollFlags="scroll|snapMargins" />
  74.  
  75.                     <TextView
  76.                        android:id="@+id/count"
  77.                        android:layout_width="wrap_content"
  78.                        android:layout_height="wrap_content"
  79.                        android:layout_gravity="center|bottom"
  80.                        android:layout_marginBottom="50dp"
  81.                        android:fontFamily="@font/pt_sans_regular"
  82.                        android:text="Testing"
  83.                        android:textColor="@android:color/white"
  84.                        app:layout_collapseMode="parallax"
  85.                        app:layout_constraintEnd_toEndOf="@id/title"
  86.                        app:layout_constraintStart_toStartOf="@id/title"
  87.                        app:layout_constraintTop_toBottomOf="@id/title"
  88.                        app:layout_scrollFlags="scroll|exitUntilCollapsed" />
  89.                 </androidx.constraintlayout.widget.ConstraintLayout>
  90.  
  91.  
  92.             </com.google.android.material.appbar.CollapsingToolbarLayout>
  93.         </com.google.android.material.appbar.AppBarLayout>
  94.  
  95.         <include layout="@layout/content_scrolling" />
  96.  
  97.     </androidx.coordinatorlayout.widget.CoordinatorLayout>
  98.  
  99.     <!--<RelativeLayout
  100.        android:id="@+id/drawer"
  101.        android:layout_width="300dp"
  102.        android:layout_height="match_parent"
  103.        android:layout_gravity="end"
  104.        android:elevation="1dp"
  105.        android:background="#FFFFFF"
  106.        android:choiceMode="none"
  107.        android:clickable="true">
  108.        &lt;!&ndash;<ImageView
  109.            android:layout_width="wrap_content"
  110.            android:layout_height="wrap_content"
  111.            android:elevation="1dp"
  112.            android:src="@drawable/ic_filter_close"
  113.            app:layout_constraintBottom_toBottomOf="parent"
  114.            app:layout_constraintStart_toStartOf="parent"/>&ndash;&gt;
  115.    </RelativeLayout>-->
  116.     <FrameLayout
  117.        android:id="@+id/frame"
  118.        android:layout_width="match_parent"
  119.        android:layout_height="match_parent"
  120.        android:clickable="true"
  121.        android:elevation="3dp"
  122.        android:focusable="true"
  123.        android:visibility="invisible">
  124.  
  125.         <ProgressBar
  126.            android:id="@+id/progress"
  127.            android:layout_width="100dp"
  128.            android:layout_height="100dp"
  129.            android:layout_gravity="center"
  130.            android:background="@android:color/transparent"
  131.            android:elevation="3dp"
  132.            android:visibility="invisible"
  133.            app:layout_constraintBottom_toBottomOf="parent"
  134.            app:layout_constraintEnd_toEndOf="parent"
  135.            app:layout_constraintStart_toStartOf="parent"
  136.            app:layout_constraintTop_toTopOf="parent" />
  137.     </FrameLayout>
  138. </androidx.drawerlayout.widget.DrawerLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement