Skip to content

Instantly share code, notes, and snippets.

@NuntapongAoumrod
Last active April 25, 2023 17:51
Show Gist options
  • Select an option

  • Save NuntapongAoumrod/fc14adf3ce8273ed3c8b1cc005494ae0 to your computer and use it in GitHub Desktop.

Select an option

Save NuntapongAoumrod/fc14adf3ce8273ed3c8b1cc005494ae0 to your computer and use it in GitHub Desktop.
Coordinator layout simple structure
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.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">
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/appBarLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<View
android:layout_width="match_parent"
android:layout_height="80dp"
android:background="@drawable/color_green"
app:layout_scrollFlags="scroll" />
</com.google.android.material.appbar.AppBarLayout>
<com.airbnb.epoxy.EpoxyRecyclerView
android:id="@+id/recyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:elevation="0dp"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment