2017-06-20 18:48:20 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
|
|
Copyright 2017 Thomas Schneider
|
|
|
|
|
2017-07-10 10:33:24 +02:00
|
|
|
This file is a part of Mastalab
|
2017-06-20 18:48:20 +02:00
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it under the terms of the
|
|
|
|
GNU General Public License as published by the Free Software Foundation; either version 3 of the
|
|
|
|
License, or (at your option) any later version.
|
|
|
|
|
2017-07-10 10:33:24 +02:00
|
|
|
Mastalab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
2017-06-20 18:48:20 +02:00
|
|
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
|
|
|
Public License for more details.
|
|
|
|
|
2017-08-04 11:11:27 +02:00
|
|
|
You should have received a copy of the GNU General Public License along with Mastalab; if not,
|
2017-06-20 18:48:20 +02:00
|
|
|
see <http://www.gnu.org/licenses>.
|
|
|
|
-->
|
2017-08-23 09:56:42 +02:00
|
|
|
<android.support.design.widget.CoordinatorLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-08-04 08:43:06 +02:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2017-08-23 09:56:42 +02:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2017-06-20 18:48:20 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2017-08-23 09:56:42 +02:00
|
|
|
android:fitsSystemWindows="true"
|
|
|
|
tools:context="fr.gouv.etalab.mastodon.activities.ShowAccountActivity">
|
|
|
|
<android.support.design.widget.AppBarLayout
|
|
|
|
android:id="@+id/appBar"
|
2017-08-18 19:22:04 +02:00
|
|
|
android:layout_width="match_parent"
|
2017-08-23 09:56:42 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:fitsSystemWindows="true"
|
|
|
|
android:theme="@style/AppTheme.AppBarOverlay">
|
|
|
|
<android.support.design.widget.CollapsingToolbarLayout
|
2017-08-04 08:43:06 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-08-23 09:56:42 +02:00
|
|
|
android:fitsSystemWindows="true"
|
|
|
|
app:layout_scrollFlags="scroll|exitUntilCollapsed">
|
2017-06-20 18:48:20 +02:00
|
|
|
<LinearLayout
|
2017-08-23 09:56:42 +02:00
|
|
|
android:id="@+id/main_header_container"
|
|
|
|
android:background="@color/mastodonC1"
|
|
|
|
android:layout_width="match_parent"
|
2017-08-23 10:40:18 +02:00
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:layout_height="300dp"
|
2017-08-23 09:56:42 +02:00
|
|
|
android:orientation="vertical">
|
2017-08-04 08:43:06 +02:00
|
|
|
<LinearLayout
|
2017-08-23 09:56:42 +02:00
|
|
|
android:id="@+id/header_container"
|
|
|
|
android:layout_marginTop="5dp"
|
2017-08-23 10:40:18 +02:00
|
|
|
android:layout_width="500dp"
|
2017-08-23 09:56:42 +02:00
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="horizontal"
|
2017-08-04 08:43:06 +02:00
|
|
|
android:layout_height="wrap_content"
|
2017-08-23 09:56:42 +02:00
|
|
|
>
|
|
|
|
<ImageView
|
|
|
|
android:padding="10dp"
|
|
|
|
android:id="@+id/account_pp"
|
|
|
|
android:layout_width="80dp"
|
|
|
|
android:layout_height="80dp"
|
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/account_dn"
|
|
|
|
android:textColor="@color/mastodonC4"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
|
|
|
|
<TextView
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:textColor="?attr/color_in_account_header"
|
|
|
|
android:id="@+id/account_un"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:textSize="14sp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
/>
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:id="@+id/account_followed_by"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:textColor="?attr/colorAccent"
|
|
|
|
android:text="@string/followed_by"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/account_follow_request"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:textColor="?attr/colorAccent"
|
|
|
|
android:text="@string/request_sent"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<android.support.design.widget.FloatingActionButton
|
|
|
|
android:layout_gravity="center"
|
2017-08-04 08:43:06 +02:00
|
|
|
android:visibility="gone"
|
2017-08-23 09:56:42 +02:00
|
|
|
app:fabSize="mini"
|
|
|
|
android:id="@+id/account_follow"
|
|
|
|
android:textAllCaps="false"
|
|
|
|
android:gravity="center"
|
|
|
|
android:layout_marginRight="10dp"
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
2017-08-04 08:43:06 +02:00
|
|
|
/>
|
|
|
|
</LinearLayout>
|
2017-08-23 09:56:42 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/account_note"
|
|
|
|
android:padding="10dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:textColor="?attr/color_in_account_header"
|
2017-08-23 10:40:18 +02:00
|
|
|
android:layout_width="500dp"
|
2017-08-23 09:56:42 +02:00
|
|
|
android:autoLink="web"
|
|
|
|
android:layout_height="wrap_content" />
|
2017-06-20 18:48:20 +02:00
|
|
|
</LinearLayout>
|
2017-08-23 09:56:42 +02:00
|
|
|
</android.support.design.widget.CollapsingToolbarLayout>
|
2017-06-20 18:48:20 +02:00
|
|
|
|
|
|
|
<android.support.design.widget.TabLayout
|
|
|
|
android:id="@+id/account_tabLayout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:tabTextAppearance="@android:style/TextAppearance.Widget.TabWidget"
|
|
|
|
app:tabMode="fixed"
|
|
|
|
app:tabGravity="fill"
|
|
|
|
/>
|
|
|
|
</android.support.design.widget.AppBarLayout>
|
2017-08-23 09:56:42 +02:00
|
|
|
<android.support.v4.view.ViewPager
|
|
|
|
android:id="@+id/account_viewpager"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
|
|
|
/>
|
|
|
|
|
|
|
|
</android.support.design.widget.CoordinatorLayout>
|