Skip to content

Instantly share code, notes, and snippets.

@KirillJJ
Last active December 21, 2018 10:56
Show Gist options
  • Save KirillJJ/bb0b9b67c6f2435354264de900ee1431 to your computer and use it in GitHub Desktop.
Save KirillJJ/bb0b9b67c6f2435354264de900ee1431 to your computer and use it in GitHub Desktop.
<android.support.design.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/base_background"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<android.support.v7.widget.RecyclerView
android:id="@+id/rv_catalog"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/base_background"
android:layout_marginBottom="8dp">
<android.support.design.widget.CollapsingToolbarLayout
android:layout_width="match_parent"
app:layout_scrollFlags="scroll|enterAlwaysCollapsed"
android:layout_height="wrap_content">
<include
android:id="@+id/row_container"
layout="@layout/description_order_row"/>
</android.support.design.widget.CollapsingToolbarLayout>
<android.support.design.widget.TabLayout
android:layout_height="match_parent"
android:layout_width="match_parent"
android:background="@color/toolbar_background"
app:tabIndicatorColor="?attr/colorPrimary"
app:tabGravity="fill"
app:tabMode="fixed"
app:tabBackground="@color/toolbar_background"
app:layout_constraintTop_toBottomOf="@+id/row_container"
android:id="@+id/sv_tabs"/>
</android.support.design.widget.AppBarLayout>
</android.support.design.widget.CoordinatorLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment