Advertisement
Guest User

fragment

a guest
Apr 1st, 2020
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 3.80 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.appcompat.widget.LinearLayoutCompat 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.     android:orientation="vertical">
  7.  
  8.     <androidx.coordinatorlayout.widget.CoordinatorLayout
  9.         android:layout_width="match_parent"
  10.         android:layout_height="wrap_content">
  11.  
  12.         <com.google.android.material.appbar.AppBarLayout
  13.             android:id="@+id/appBar"
  14.             android:layout_width="match_parent"
  15.             android:layout_height="wrap_content"
  16.             android:fitsSystemWindows="true">
  17.  
  18.             <com.google.android.material.appbar.CollapsingToolbarLayout
  19.                 android:id="@+id/account_collapse_toolbar"
  20.                 android:layout_width="match_parent"
  21.                 android:layout_height="match_parent"
  22.                 app:contentScrim="?attr/colorPrimary"
  23.                 app:expandedTitleGravity="top"
  24.                 app:expandedTitleTextAppearance="@android:color/transparent"
  25.                 app:layout_scrollFlags="scroll|exitUntilCollapsed|snap"
  26.                 app:toolbarId="@id/toolbar">
  27.  
  28.                 <androidx.appcompat.widget.LinearLayoutCompat
  29.                     android:layout_width="match_parent"
  30.                     android:layout_height="wrap_content"
  31.                     android:layout_marginTop="@dimen/margin"
  32.                     android:orientation="vertical">
  33.  
  34.  
  35.                     <ImageView
  36.                         android:layout_width="wrap_content"
  37.                         android:layout_height="wrap_content"
  38.                         android:layout_gravity="center"
  39.                         android:layout_marginTop="@dimen/margin"
  40.                         android:src="@drawable/ic_profile_main" />
  41.  
  42.  
  43.                     <TextView
  44.                         android:id="@+id/account_name_tv"
  45.                         android:layout_width="wrap_content"
  46.                         android:layout_height="wrap_content"
  47.                         android:layout_gravity="center"
  48.                         android:layout_marginTop="@dimen/margin_xl"
  49.                         android:layout_marginBottom="@dimen/margin"
  50.                         android:text="Тест Тестович"
  51.                         android:textColor="@color/colorWhite"
  52.                         android:textSize="@dimen/text_size_xl" />
  53.  
  54.                 </androidx.appcompat.widget.LinearLayoutCompat>
  55.  
  56.  
  57.                 <androidx.appcompat.widget.Toolbar
  58.                     android:id="@+id/toolbar"
  59.                     android:layout_width="match_parent"
  60.                     android:layout_height="?attr/actionBarSize"
  61.                     app:layout_collapseMode="pin" />
  62.             </com.google.android.material.appbar.CollapsingToolbarLayout>
  63.         </com.google.android.material.appbar.AppBarLayout>
  64.  
  65.         <androidx.core.widget.NestedScrollView
  66.             android:layout_width="match_parent"
  67.             android:layout_height="match_parent"
  68.             app:layout_behavior="@string/appbar_scrolling_view_behavior">
  69.  
  70.      
  71.  
  72.  
  73.         </androidx.core.widget.NestedScrollView>
  74.  
  75.         <com.google.android.material.floatingactionbutton.FloatingActionButton
  76.             android:id="@+id/account_theme_fb"
  77.             android:layout_width="wrap_content"
  78.             android:layout_height="wrap_content"
  79.             android:layout_marginEnd="@dimen/margin_xxs"
  80.             android:src="@drawable/ic_night_theme"
  81.             android:tint="@color/colorBaseBrand"
  82.             app:layout_anchor="@id/appBar"
  83.             app:layout_anchorGravity="bottom|right|end" />
  84.  
  85.  
  86.     </androidx.coordinatorlayout.widget.CoordinatorLayout>
  87.  
  88.  
  89. </androidx.appcompat.widget.LinearLayoutCompat>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement