mirror of https://github.com/ThmmyNoLife/mTHMMY
118 lines
4.8 KiB
118 lines
4.8 KiB
<?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"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/main_content"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fitsSystemWindows="true"
|
|
tools:context=".activities.profile.ProfileActivity">
|
|
|
|
<android.support.design.widget.AppBarLayout
|
|
android:id="@+id/appbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="@dimen/appbar_padding_top"
|
|
android:theme="@style/ToolbarTheme">
|
|
|
|
<android.support.design.widget.CollapsingToolbarLayout
|
|
android:id="@+id/main.collapsing"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fitsSystemWindows="true"
|
|
app:contentScrim="?attr/colorPrimary"
|
|
app:expandedTitleMarginEnd="64dp"
|
|
app:expandedTitleMarginStart="48dp"
|
|
app:layout_scrollFlags="scroll|exitUntilCollapsed">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="5dp"
|
|
android:gravity="center"
|
|
android:orientation="vertical">
|
|
|
|
<ImageView
|
|
android:id="@+id/user_thumbnail"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:adjustViewBounds="true"
|
|
android:contentDescription="@string/thumbnail"
|
|
android:fitsSystemWindows="true"
|
|
android:src="@drawable/ic_default_user_thumbnail"
|
|
android:transitionName="user_thumbnail"
|
|
app:layout_collapseMode="parallax"/>
|
|
|
|
<TextView
|
|
android:id="@+id/profile_act_personal_text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:textColor="@color/primary_text"
|
|
android:visibility="gone"/>
|
|
</LinearLayout>
|
|
</android.support.design.widget.CollapsingToolbarLayout>
|
|
|
|
<android.support.v7.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?attr/actionBarSize"
|
|
android:background="?attr/colorPrimary"
|
|
android:gravity="center"
|
|
app:popupTheme="@style/ToolbarTheme">
|
|
|
|
<TextView
|
|
android:id="@+id/profile_act_username"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:textColor="@color/accent"
|
|
android:textSize="25sp"/>
|
|
</android.support.v7.widget.Toolbar>
|
|
</android.support.design.widget.AppBarLayout>
|
|
|
|
<ProgressBar
|
|
android:id="@+id/progressBar"
|
|
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:indeterminate="true"
|
|
android:theme="@style/AppTheme"
|
|
android:visibility="invisible"
|
|
app:layout_anchor="@id/appbar"
|
|
app:layout_anchorGravity="bottom|center"/>
|
|
|
|
<android.support.v4.widget.NestedScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="top|start"
|
|
android:background="@color/background"
|
|
android:paddingEnd="16dp"
|
|
android:paddingStart="16dp"
|
|
android:scrollbars="none"
|
|
app:layout_anchor="@id/appbar"
|
|
app:layout_anchorGravity="bottom|center"
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/profile_act_content"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:orientation="vertical">
|
|
</LinearLayout>
|
|
</android.support.v4.widget.NestedScrollView>
|
|
|
|
<android.support.design.widget.FloatingActionButton
|
|
android:id="@+id/profile_fab"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom|end"
|
|
android:layout_margin="@dimen/fab_margins"
|
|
app:layout_behavior="gr.thmmy.mthmmy.utils.ScrollAwareFABBehavior"
|
|
app:srcCompat="@drawable/ic_pm_fab"/>
|
|
</android.support.design.widget.CoordinatorLayout>
|
|
|
|
|
|
|