2017-01-28 14:33:43 +11:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2017-05-05 02:07:59 +10:00
|
|
|
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-01-28 14:33:43 +11:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2017-05-05 02:07:59 +10:00
|
|
|
android:id="@+id/activity_account"
|
2017-01-28 14:33:43 +11:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2017-05-05 02:07:59 +10:00
|
|
|
android:fitsSystemWindows="true"
|
|
|
|
android:orientation="vertical">
|
2017-01-28 14:33:43 +11:00
|
|
|
|
|
|
|
<android.support.design.widget.AppBarLayout
|
2017-05-05 02:07:59 +10:00
|
|
|
android:id="@+id/account_app_bar_layout"
|
2017-01-28 14:33:43 +11:00
|
|
|
android:layout_width="match_parent"
|
2017-03-07 18:28:12 +11:00
|
|
|
android:layout_height="wrap_content"
|
2017-05-05 02:07:59 +10:00
|
|
|
android:theme="@style/AppTheme.Account.AppBarLayout">
|
2017-01-28 14:33:43 +11:00
|
|
|
|
|
|
|
<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"
|
2017-03-07 06:48:31 +11:00
|
|
|
android:fitsSystemWindows="true"
|
2017-05-05 02:07:59 +10:00
|
|
|
app:contentScrim="?attr/toolbar_background_color"
|
|
|
|
app:layout_scrollFlags="scroll|exitUntilCollapsed"
|
2017-01-28 14:33:43 +11:00
|
|
|
app:titleEnabled="false">
|
|
|
|
|
2017-03-16 07:38:19 +11:00
|
|
|
<RelativeLayout
|
2017-01-28 14:33:43 +11:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
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-05-05 02:07:59 +10:00
|
|
|
android:id="@+id/account_header"
|
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-05-05 02:07:59 +10:00
|
|
|
android:layout_alignBottom="@+id/account_header_info"
|
2017-03-16 09:51:01 +11:00
|
|
|
android:layout_alignTop="@+id/account_header_info"
|
2017-05-05 02:07:59 +10:00
|
|
|
android:background="@drawable/account_header_default"
|
|
|
|
android:contentDescription="@null"
|
|
|
|
android:fitsSystemWindows="true"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
app:layout_collapseMode="pin" />
|
2017-01-28 14:33:43 +11:00
|
|
|
|
2017-03-07 06:48:31 +11:00
|
|
|
<LinearLayout
|
2017-03-16 09:51:01 +11:00
|
|
|
android:id="@+id/account_header_info"
|
2017-01-28 14:33:43 +11:00
|
|
|
android:layout_width="match_parent"
|
2017-05-05 02:07:59 +10:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@drawable/account_header_gradient"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingTop="?attr/actionBarSize"
|
|
|
|
app:layout_collapseMode="parallax">
|
2017-01-28 14:33:43 +11:00
|
|
|
|
2017-03-07 06:48:31 +11:00
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
2017-05-05 02:07:59 +10:00
|
|
|
android:layout_height="wrap_content"
|
2017-03-07 06:48:31 +11:00
|
|
|
android:paddingLeft="16dp"
|
2017-08-04 18:53:38 +10:00
|
|
|
android:paddingRight="16dp">
|
2017-01-28 14:33:43 +11:00
|
|
|
|
2017-03-07 06:48:31 +11:00
|
|
|
<com.pkmmte.view.CircularImageView
|
2017-05-05 02:07:59 +10:00
|
|
|
android:id="@+id/account_avatar"
|
2017-03-07 06:48:31 +11:00
|
|
|
android:layout_width="80dp"
|
|
|
|
android:layout_height="80dp"
|
2017-07-12 16:09:07 +10:00
|
|
|
android:layout_marginEnd="10dp"
|
2017-03-07 06:48:31 +11:00
|
|
|
android:layout_marginRight="10dp"
|
2017-05-05 02:07:59 +10:00
|
|
|
android:src="@drawable/avatar_default"
|
2017-08-04 18:53:38 +10:00
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_toLeftOf="@+id/follow_btn"
|
|
|
|
android:layout_toStartOf="@+id/follow_btn"
|
2017-05-05 02:07:59 +10:00
|
|
|
app:shadow="true" />
|
2017-01-28 14:33:43 +11:00
|
|
|
|
2017-08-04 18:53:38 +10:00
|
|
|
<Button
|
2017-01-28 14:33:43 +11:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-07-12 16:09:07 +10:00
|
|
|
android:layout_alignParentEnd="true"
|
2017-05-05 02:07:59 +10:00
|
|
|
android:layout_alignParentRight="true"
|
2017-08-04 18:53:38 +10:00
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:id="@+id/follow_btn"/>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/account_avatar"
|
2017-05-05 02:07:59 +10:00
|
|
|
android:orientation="vertical">
|
2017-01-28 14:33:43 +11:00
|
|
|
|
2017-03-07 06:48:31 +11:00
|
|
|
<TextView
|
2017-05-05 02:07:59 +10:00
|
|
|
android:id="@+id/account_display_name"
|
2017-03-07 06:48:31 +11:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-03-08 06:42:01 +11:00
|
|
|
android:ellipsize="end"
|
2017-05-05 02:07:59 +10:00
|
|
|
android:maxLines="1"
|
2017-03-07 11:31:05 +11:00
|
|
|
android:textColor="?android:textColorPrimary"
|
2017-05-05 02:07:59 +10:00
|
|
|
android:textSize="18sp"
|
|
|
|
android:textStyle="normal|bold" />
|
2017-01-28 14:33:43 +11:00
|
|
|
|
2017-03-15 01:27:22 +11:00
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
2017-05-05 02:07:59 +10:00
|
|
|
|
2017-03-15 01:27:22 +11:00
|
|
|
<TextView
|
2017-05-05 02:07:59 +10:00
|
|
|
android:id="@+id/account_username"
|
2017-03-15 01:27:22 +11:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
2017-05-05 02:07:59 +10:00
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="?android:textColorSecondary" />
|
2017-03-15 01:27:22 +11:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/account_locked"
|
|
|
|
android:layout_width="16sp"
|
|
|
|
android:layout_height="16sp"
|
2017-05-05 02:07:59 +10:00
|
|
|
android:layout_centerVertical="true"
|
2017-03-15 01:27:22 +11:00
|
|
|
android:layout_marginLeft="4dp"
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:layout_toEndOf="@id/account_username"
|
2017-04-12 14:21:52 +10:00
|
|
|
android:layout_toRightOf="@id/account_username"
|
2017-05-05 02:07:59 +10:00
|
|
|
android:contentDescription="@string/description_account_locked"
|
|
|
|
android:tint="?android:textColorSecondary"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:srcCompat="@drawable/reblog_disabled_light" />
|
2017-03-15 01:27:22 +11:00
|
|
|
</RelativeLayout>
|
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
|
2017-05-05 02:07:59 +10:00
|
|
|
android:id="@+id/account_note"
|
2017-03-07 06:48:31 +11:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="16dp"
|
2017-05-05 02:07:59 +10:00
|
|
|
android:paddingTop="10dp"
|
|
|
|
android:textColor="?android:textColorTertiary" />
|
2017-03-07 18:28:12 +11:00
|
|
|
|
2017-03-07 06:48:31 +11:00
|
|
|
</LinearLayout>
|
2017-03-07 18:28:12 +11:00
|
|
|
|
2017-03-16 07:38:19 +11:00
|
|
|
</RelativeLayout>
|
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:layout_alignParentTop="true"
|
2017-05-05 02:07:59 +10:00
|
|
|
android:layout_gravity="top"
|
|
|
|
android:background="@android:color/transparent"
|
2017-03-07 18:28:12 +11:00
|
|
|
app:layout_collapseMode="pin"
|
|
|
|
app:popupTheme="?attr/account_toolbar_popup_theme" />
|
2017-01-28 14:33:43 +11:00
|
|
|
|
|
|
|
</android.support.design.widget.CollapsingToolbarLayout>
|
|
|
|
|
|
|
|
</android.support.design.widget.AppBarLayout>
|
|
|
|
|
|
|
|
<android.support.v4.view.ViewPager
|
2017-05-05 02:07:59 +10:00
|
|
|
android:id="@+id/pager"
|
2017-01-28 14:33:43 +11:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
|
|
|
|
<android.support.design.widget.TabLayout
|
|
|
|
android:id="@+id/tab_layout"
|
|
|
|
android:layout_width="match_parent"
|
2017-05-05 02:07:59 +10:00
|
|
|
android:layout_height="wrap_content"
|
2017-08-04 00:24:14 +10:00
|
|
|
app:tabBackground="?android:colorBackground"
|
|
|
|
app:tabGravity="fill">
|
2017-01-28 14:33:43 +11:00
|
|
|
|
|
|
|
<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-04-09 18:13:18 +10:00
|
|
|
<View
|
|
|
|
android:id="@+id/tab_bottom_shadow"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="2dp"
|
|
|
|
android:background="@drawable/material_drawer_shadow_bottom"
|
2017-05-05 02:07:59 +10:00
|
|
|
android:visibility="visible"
|
|
|
|
app:layout_anchor="@id/tab_layout"
|
|
|
|
app:layout_anchorGravity="bottom" />
|
2017-04-09 18:13:18 +10:00
|
|
|
|
2017-03-07 06:48:31 +11:00
|
|
|
<android.support.design.widget.FloatingActionButton
|
|
|
|
android:id="@+id/floating_btn"
|
|
|
|
android:layout_width="wrap_content"
|
2017-05-05 02:07:59 +10:00
|
|
|
android:layout_height="wrap_content"
|
2017-03-07 06:48:31 +11:00
|
|
|
android:layout_gravity="bottom|end"
|
|
|
|
android:layout_margin="16dp"
|
2017-08-04 18:53:38 +10:00
|
|
|
android:contentDescription="@string/action_mention"
|
|
|
|
app:srcCompat="@drawable/ic_create_24dp" />
|
2017-03-07 06:48:31 +11:00
|
|
|
|
2017-04-09 18:13:18 +10:00
|
|
|
</android.support.design.widget.CoordinatorLayout>
|