Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <android.support.design.widget.CoordinatorLayout 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"
- xmlns:tools="http://schemas.android.com/tools">
- <android.support.design.widget.AppBarLayout
- android:id="@+id/flexible.example.appbar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="top"
- android:background="@android:color/transparent"
- >
- <android.support.design.widget.CollapsingToolbarLayout
- android:id="@+id/flexible.example.collapsing"
- android:layout_width="match_parent"
- android:layout_height="@dimen/_190sdp"
- android:fitsSystemWindows="true"
- app:title="This is just dummy text"
- app:contentScrim="@android:color/transparent"
- app:statusBarScrim="@android:color/transparent"
- app:collapsedTitleGravity="center_horizontal"
- app:expandedTitleGravity="bottom|center_horizontal"
- app:layout_scrollFlags="scroll|exitUntilCollapsed|snap">
- <ImageView
- android:id="@+id/backdrop"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:fitsSystemWindows="true"
- android:scaleType="centerCrop"
- android:src="@mipmap/dj_man"
- app:layout_collapseMode="parallax" />
- <android.support.v7.widget.Toolbar
- android:id="@+id/flexible.example.toolbar"
- android:layout_width="match_parent"
- android:layout_height="?attr/actionBarSize"
- app:layout_collapseMode="pin"
- style="@style/ToolBarWithNavigationBack2">
- <ImageView
- android:id="@+id/toolbar_logo"
- android:layout_width="40dp"
- android:layout_height="wrap_content"
- android:visibility="gone"
- android:tint="@color/black"
- android:layout_gravity="center|left"
- android:adjustViewBounds="true"
- android:src="@mipmap/arrow_up"/>
- <ImageView
- android:layout_width="40dp"
- android:layout_height="wrap_content"
- android:visibility="invisible"
- android:tint="@color/black"
- android:layout_gravity="center|right"
- android:adjustViewBounds="true"
- android:src="@mipmap/arrow_up"/>
- <ImageView
- android:layout_width="40dp"
- android:layout_height="wrap_content"
- android:visibility="invisible"
- android:tint="@color/black"
- android:layout_gravity="center|right"
- android:adjustViewBounds="true"
- android:src="@mipmap/arrow_up"/>
- </android.support.v7.widget.Toolbar>
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_below="@+id/toolbar"
- android:layout_marginTop="?attr/actionBarSize"
- android:fitsSystemWindows="true"
- android:gravity="bottom|center"
- android:scaleType="centerCrop">
- <LinearLayout
- android:layout_width="match_parent"
- android:orientation="horizontal"
- android:gravity="center"
- android:layout_marginTop="@dimen/_10sdp"
- android:layout_height="wrap_content">
- <ImageView
- android:layout_toRightOf="@+id/temp_tv"
- android:layout_width="30dp"
- android:layout_height="30dp"
- android:visibility="gone"
- android:adjustViewBounds="true"
- android:src="@mipmap/heart_"/>
- <TextView
- android:id="@+id/temp_tv"
- android:layout_width="wrap_content"
- android:layout_height="@dimen/_30sdp"
- android:gravity="center|bottom"
- android:text="Subscription"
- android:textAllCaps="true"
- android:textColor="@color/black"
- android:textSize="@dimen/_12sdp" />
- </LinearLayout>
- </RelativeLayout>
- </android.support.design.widget.CollapsingToolbarLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:gravity="center"
- android:layout_height="@dimen/_30sdp">
- <ImageView
- android:layout_toRightOf="@+id/temp_tv"
- android:layout_width="@dimen/_25sdp"
- android:layout_margin="@dimen/_5sdp"
- android:layout_height="@dimen/_25sdp"
- android:visibility="visible"
- android:layout_gravity="center"
- android:adjustViewBounds="true"
- android:src="@mipmap/heart_"/>
- </LinearLayout>
- <View
- android:layout_width="match_parent"
- android:background="@color/colorPrimaryDark"
- android:layout_height="1dp"/>
- </android.support.design.widget.AppBarLayout>
- app:layout_anchor="@id/flexible.example.appbar"
- <android.support.v7.widget.RecyclerView
- android:id="@+id/list"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@mipmap/dj_man"
- android:fillViewport="true"
- android:fitsSystemWindows="true"
- app:layoutManager="LinearLayoutManager"
- app:layout_behavior="@string/appbar_scrolling_view_behavior"
- tools:listitem="@layout/fragment_song" />
- </android.support.design.widget.CoordinatorLayout>
Add Comment
Please, Sign In to add comment