Created
February 25, 2018 01:35
-
-
Save kelvinc1024/638c318e51c84fac709392fd7f575bb3 to your computer and use it in GitHub Desktop.
This file contains 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"?> | |
<LinearLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical" | |
tools:context="com.example.kelvinchandra.myapplication.MainActivity"> | |
<android.support.design.widget.CoordinatorLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<android.support.design.widget.AppBarLayout | |
android:id="@+id/main.appbar" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content"> | |
<android.support.design.widget.CollapsingToolbarLayout | |
android:id="@+id/main.collapsing" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:background="#ffffff" | |
app:layout_scrollFlags="scroll|enterAlwaysCollapsed" | |
app:scrimAnimationDuration="0"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="vertical"> | |
<FrameLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content"> | |
<ImageView | |
android:layout_width="match_parent" | |
android:layout_height="150dp" | |
android:scaleType="centerCrop" | |
android:src="@drawable/ic_launcher_background"/> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center" | |
android:text="Header View" | |
android:textSize="30sp"/> | |
</FrameLayout> | |
<HorizontalScrollView | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="horizontal"> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_margin="8dp" | |
android:background="#bab2ba" | |
android:padding="8dp" | |
android:text="Heloow"/> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_margin="8dp" | |
android:background="#bab2ba" | |
android:padding="8dp" | |
android:text="Heloow"/> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_margin="8dp" | |
android:background="#bab2ba" | |
android:padding="8dp" | |
android:text="Heloow"/> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_margin="8dp" | |
android:background="#bab2ba" | |
android:padding="8dp" | |
android:text="Heloow"/> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_margin="8dp" | |
android:background="#bab2ba" | |
android:padding="8dp" | |
android:text="Heloow"/> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_margin="8dp" | |
android:background="#bab2ba" | |
android:padding="8dp" | |
android:text="Heloow"/> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_margin="8dp" | |
android:background="#bab2ba" | |
android:padding="8dp" | |
android:text="Heloow"/> | |
</LinearLayout> | |
</HorizontalScrollView> | |
<android.support.design.widget.TabLayout | |
android:id="@+id/tab_layout" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:background="#aa00aa" | |
android:visibility="visible"/> | |
</LinearLayout> | |
</android.support.design.widget.CollapsingToolbarLayout> | |
</android.support.design.widget.AppBarLayout> | |
<android.support.v4.view.ViewPager | |
android:id="@+id/my_view_pager" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
app:layout_behavior="@string/appbar_scrolling_view_behavior"> | |
</android.support.v4.view.ViewPager> | |
</android.support.design.widget.CoordinatorLayout> | |
</LinearLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment