Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <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"
- android:fitsSystemWindows="true">
- <android.support.design.widget.AppBarLayout
- android:id="@+id/appbar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:fitsSystemWindows="true"
- android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
- <android.support.design.widget.CollapsingToolbarLayout
- android:id="@+id/collapsing_toolbar"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:fitsSystemWindows="true"
- app:contentScrim="?attr/colorPrimary"
- app:expandedTitleMarginBottom="32dp"
- app:expandedTitleMarginEnd="64dp"
- app:expandedTitleMarginStart="48dp"
- app:layout_scrollFlags="scroll|enterAlways">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:fitsSystemWindows="true"
- android:orientation="vertical"
- android:padding="8dp"
- app:layout_collapseMode="parallax">
- <TextView
- android:id="@+id/lblTopArtist"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:gravity="center_horizontal"
- android:paddingLeft="8dp"
- android:text="Top Artists"
- android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="230dp"
- android:layout_gravity="center_vertical"
- android:orientation="vertical"
- android:paddingBottom="8dp"
- android:paddingTop="8dp">
- <android.support.v7.widget.RecyclerView
- android:id="@+id/recyclerViewTopArtists"
- android:layout_width="match_parent"
- android:layout_height="wrap_content" />
- </LinearLayout>
- </LinearLayout>
- </android.support.design.widget.CollapsingToolbarLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="0.2dp"
- android:background="@android:color/transparent" />
- </android.support.design.widget.AppBarLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- app:layout_behavior="@string/appbar_scrolling_view_behavior">
- <android.support.design.widget.TabLayout
- android:id="@+id/tabLayout"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@color/colorPrimary"
- android:fitsSystemWindows="true"
- android:gravity="bottom"
- android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
- app:layout_scrollFlags="scroll"
- app:tabGravity="center"
- app:tabIndicatorColor="@color/colorAccent"
- app:tabIndicatorHeight="4dp"
- app:tabMode="fixed" />
- <android.support.v4.view.ViewPager
- android:id="@+id/viewPager"
- android:layout_width="match_parent"
- android:layout_height="match_parent" />
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement