Created
September 13, 2018 00:38
-
-
Save kelvinc1024/790536ac8379b53c2a84eecf9b25a725 to your computer and use it in GitHub Desktop.
Literal Nesting Coordinator Layout
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"?> | |
<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.support.design.widget.AppBarLayout | |
android:id="@+id/appbarLayout" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content"> | |
<FrameLayout | |
android:layout_width="match_parent" | |
android:layout_height="200dp" | |
android:minHeight="48dp" | |
app:layout_scrollFlags="scroll|exitUntilCollapsed"> | |
<ImageView | |
android:id="@+id/sample_image" | |
android:layout_width="match_parent" | |
android:layout_height="200dp" | |
android:layout_gravity="bottom|center_horizontal" | |
android:src="@mipmap/ic_launcher"/> | |
</FrameLayout> | |
</android.support.design.widget.AppBarLayout> | |
<android.support.design.widget.CoordinatorLayout | |
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.support.design.widget.TabLayout | |
android:id="@+id/tabLayout" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
app:layout_scrollFlags="scroll|enterAlways"/> | |
</android.support.design.widget.AppBarLayout> | |
<android.support.v7.widget.RecyclerView | |
android:id="@+id/recyclerview" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
app:layout_behavior="@string/appbar_scrolling_view_behavior"/> | |
</android.support.design.widget.CoordinatorLayout> | |
</android.support.design.widget.CoordinatorLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment