Created
May 5, 2019 13:22
-
-
Save kevivforever/5cc89980de2b9b6dad66c289db58e74c 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"?> | |
<androidx.coordinatorlayout.widget.CoordinatorLayout 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" > | |
<com.google.android.material.appbar.AppBarLayout | |
android:id="@+id/user_Profile_appbarlayout" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" > | |
<com.google.android.material.appbar.CollapsingToolbarLayout | |
android:id="@+id/user_profile_collapsing_toolbar" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
app:scrimAnimationDuration="100" | |
app:layout_scrollFlags="scroll|exitUntilCollapsed" | |
app:titleEnabled="false"> | |
<androidx.constraintlayout.widget.ConstraintLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:background="@color/colorWhite" | |
android:layout_marginTop="?attr/actionBarSize"> | |
<!--- your views ----> | |
</androidx.constraintlayout.widget.ConstraintLayout> | |
<androidx.appcompat.widget.Toolbar | |
android:id="@+id/user_profile_toolbar" | |
android:layout_width="match_parent" | |
android:layout_height="?attr/actionBarSize" | |
android:background="@color/colorWhite" | |
app:layout_collapseMode="pin" | |
app:layout_scrollFlags="scroll|enterAlways|snap" | |
app:popupTheme="@style/AppTheme.PopupOverlay" /> | |
</com.google.android.material.appbar.CollapsingToolbarLayout> | |
<com.google.android.material.tabs.TabLayout | |
android:id="@+id/user_profile_tabLayout" | |
style="@style/TabLayoutTheme" | |
android:layout_width="match_parent" | |
android:layout_height="?attr/actionBarSize" | |
android:layout_gravity="bottom" | |
app:tabMode="fixed" /> | |
</com.google.android.material.appbar.AppBarLayout> | |
<androidx.viewpager.widget.ViewPager | |
android:id="@+id/user_profile_viewpager" | |
android:layout_width="match_parent" | |
android:background="@color/colorWhite" | |
android:layout_height="match_parent" | |
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