Last active
April 25, 2023 17:51
-
-
Save NuntapongAoumrod/fc14adf3ce8273ed3c8b1cc005494ae0 to your computer and use it in GitHub Desktop.
Coordinator layout simple structure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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