Created
May 8, 2019 13:27
-
-
Save caneryilmaz/0585f85224db09067d7971a48a122065 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"?> | |
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:id="@+id/htab_maincontent" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:fitsSystemWindows="true"> | |
<android.support.design.widget.AppBarLayout | |
android:id="@+id/collapsing_toolbar_appbarlayout" | |
android:layout_width="match_parent" | |
android:layout_height="200dp"> | |
<!-- app:contentScrim : The Toolbar color when the | |
collapsing toolbar is collapsed. --> | |
<android.support.design.widget.CollapsingToolbarLayout | |
android:id="@+id/collapsing_toolbar_layout" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" | |
app:layout_scrollFlags="scroll|exitUntilCollapsed"> | |
<!-- app:layout_collapseMode : parallax means an animation effect, | |
pin means fixed. --> | |
<ImageView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:scaleType="centerCrop" | |
android:src="@drawable/ic_parallax_two" | |
app:layout_collapseMode="parallax" | |
app:layout_collapseParallaxMultiplier="0.75" /> | |
</android.support.design.widget.CollapsingToolbarLayout> | |
</android.support.design.widget.AppBarLayout> | |
<ProgressBar | |
android:id="@+id/progress_bar" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center" /> | |
<FrameLayout | |
app:layout_behavior="@string/appbar_scrolling_view_behavior" | |
android:id="@+id/fragment_container" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" /> | |
</android.support.design.widget.CoordinatorLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment