2017-01-28 14:33:43 +11:00
|
|
|
<?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:orientation="vertical"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2017-01-31 15:51:02 +11:00
|
|
|
android:id="@+id/activity_account"
|
2017-01-28 14:33:43 +11:00
|
|
|
android:fitsSystemWindows="true">
|
|
|
|
|
|
|
|
<android.support.design.widget.AppBarLayout
|
|
|
|
android:layout_width="match_parent"
|
2017-03-07 06:48:31 +11:00
|
|
|
android:theme="@style/AppTheme"
|
2017-01-28 14:33:43 +11:00
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<android.support.design.widget.CollapsingToolbarLayout
|
2017-03-07 06:48:31 +11:00
|
|
|
android:id="@+id/collapsing_toolbar"
|
2017-01-28 14:33:43 +11:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
app:layout_scrollFlags="scroll|exitUntilCollapsed"
|
2017-03-07 06:48:31 +11:00
|
|
|
app:contentScrim="?attr/toolbar_background_color"
|
|
|
|
android:fitsSystemWindows="true"
|
2017-01-28 14:33:43 +11:00
|
|
|
app:titleEnabled="false">
|
|
|
|
|
2017-03-07 06:48:31 +11:00
|
|
|
<FrameLayout
|
2017-01-28 14:33:43 +11:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
2017-02-13 16:18:17 +11:00
|
|
|
android:background="?attr/account_header_background_color">
|
2017-01-28 14:33:43 +11:00
|
|
|
|
2017-03-07 06:48:31 +11:00
|
|
|
<ImageView
|
2017-01-28 14:33:43 +11:00
|
|
|
android:layout_width="match_parent"
|
2017-03-07 06:48:31 +11:00
|
|
|
android:layout_height="match_parent"
|
2017-01-28 14:33:43 +11:00
|
|
|
android:id="@+id/account_header"
|
2017-03-07 06:48:31 +11:00
|
|
|
android:scaleType="centerCrop"
|
|
|
|
app:layout_collapseMode="pin"
|
|
|
|
android:fitsSystemWindows="true"
|
2017-01-28 14:33:43 +11:00
|
|
|
android:adjustViewBounds="true" />
|
|
|
|
|
2017-03-07 06:48:31 +11:00
|
|
|
<LinearLayout
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingTop="?attr/actionBarSize"
|
|
|
|
android:background="@drawable/account_header_gradient"
|
2017-01-28 14:33:43 +11:00
|
|
|
android:layout_width="match_parent"
|
2017-03-07 06:48:31 +11:00
|
|
|
app:layout_collapseMode="parallax"
|
2017-01-28 14:33:43 +11:00
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
2017-03-07 06:48:31 +11:00
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:paddingLeft="16dp"
|
|
|
|
android:paddingRight="16dp"
|
|
|
|
android:paddingTop="16dp"
|
|
|
|
android:layout_height="wrap_content">
|
2017-01-28 14:33:43 +11:00
|
|
|
|
2017-03-07 06:48:31 +11:00
|
|
|
<com.pkmmte.view.CircularImageView
|
|
|
|
android:layout_width="80dp"
|
|
|
|
android:layout_height="80dp"
|
|
|
|
android:layout_marginRight="10dp"
|
2017-03-07 11:31:05 +11:00
|
|
|
app:shadow="true"
|
2017-03-07 06:48:31 +11:00
|
|
|
android:id="@+id/account_avatar" />
|
2017-01-28 14:33:43 +11:00
|
|
|
|
2017-03-07 06:48:31 +11:00
|
|
|
<LinearLayout
|
2017-01-28 14:33:43 +11:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-03-07 06:48:31 +11:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_toRightOf="@id/account_avatar">
|
2017-01-28 14:33:43 +11:00
|
|
|
|
2017-03-07 06:48:31 +11:00
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/account_display_name"
|
|
|
|
android:textStyle="normal|bold"
|
2017-03-07 11:31:05 +11:00
|
|
|
android:textColor="?android:textColorPrimary"
|
2017-03-07 06:48:31 +11:00
|
|
|
android:textSize="18sp" />
|
2017-01-28 14:33:43 +11:00
|
|
|
|
2017-03-07 06:48:31 +11:00
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-03-07 11:31:05 +11:00
|
|
|
android:textColor="?android:textColorSecondary"
|
2017-03-07 06:48:31 +11:00
|
|
|
android:id="@+id/account_username" />
|
2017-01-28 14:33:43 +11:00
|
|
|
|
2017-03-07 06:48:31 +11:00
|
|
|
</LinearLayout>
|
2017-01-28 14:33:43 +11:00
|
|
|
|
2017-03-07 06:48:31 +11:00
|
|
|
</RelativeLayout>
|
2017-01-28 14:33:43 +11:00
|
|
|
|
2017-03-07 06:48:31 +11:00
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/account_note"
|
2017-03-07 11:31:05 +11:00
|
|
|
android:textColor="?android:textColorTertiary"
|
2017-03-07 06:48:31 +11:00
|
|
|
android:padding="16dp"
|
|
|
|
android:paddingTop="10dp"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</FrameLayout>
|
2017-01-28 14:33:43 +11:00
|
|
|
|
|
|
|
<android.support.v7.widget.Toolbar
|
|
|
|
android:id="@+id/toolbar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="?attr/actionBarSize"
|
2017-03-07 06:48:31 +11:00
|
|
|
android:background="@android:color/transparent"
|
2017-01-28 14:33:43 +11:00
|
|
|
android:layout_gravity="top"
|
2017-03-07 06:48:31 +11:00
|
|
|
android:layout_alignParentTop="true"
|
2017-01-28 14:33:43 +11:00
|
|
|
app:layout_collapseMode="pin" />
|
|
|
|
|
|
|
|
</android.support.design.widget.CollapsingToolbarLayout>
|
|
|
|
|
|
|
|
</android.support.design.widget.AppBarLayout>
|
|
|
|
|
|
|
|
<android.support.v4.view.ViewPager
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:id="@+id/pager"
|
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
|
|
|
|
<android.support.design.widget.TabLayout
|
|
|
|
android:id="@+id/tab_layout"
|
2017-03-07 11:31:05 +11:00
|
|
|
app:tabBackground="?android:colorBackground"
|
2017-01-28 14:33:43 +11:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<android.support.design.widget.TabItem
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
|
|
|
<android.support.design.widget.TabItem
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
|
|
|
<android.support.design.widget.TabItem
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
|
|
|
</android.support.design.widget.TabLayout>
|
|
|
|
|
|
|
|
</android.support.v4.view.ViewPager>
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/overlay_fragment_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent" />
|
|
|
|
|
2017-03-07 06:48:31 +11:00
|
|
|
<android.support.design.widget.FloatingActionButton
|
|
|
|
android:id="@+id/floating_btn"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_gravity="bottom|end"
|
|
|
|
android:layout_margin="16dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:srcCompat="@drawable/ic_person_add_24dp"/>
|
|
|
|
|
2017-01-28 14:33:43 +11:00
|
|
|
</android.support.design.widget.CoordinatorLayout>
|