fedilab-Android-App/app/src/main/res/layout-sw600dp/activity_show_account.xml

456 lines
24 KiB
XML
Raw Normal View History

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"
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-10-14 11:09:12 +02:00
xmlns:app="http://schemas.android.com/apk/res-auto"
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"
2018-11-03 12:06:44 +01:00
>
2017-08-23 09:56:42 +02:00
<android.support.design.widget.CollapsingToolbarLayout
android:layout_width="match_parent"
2017-10-14 11:09:12 +02:00
android:layout_gravity="center_horizontal"
android:id="@+id/collapsingToolbarLayout"
2017-10-15 15:09:09 +02:00
android:layout_height="wrap_content"
2017-08-23 09:56:42 +02:00
android:fitsSystemWindows="true"
2017-10-14 11:09:12 +02:00
app:expandedTitleMarginStart="48dp"
app:expandedTitleMarginEnd="64dp"
app:layout_scrollFlags="scroll">
2017-10-15 15:09:09 +02:00
<RelativeLayout
2017-08-23 09:56:42 +02:00
android:layout_width="match_parent"
2017-10-15 15:09:09 +02:00
android:layout_height="wrap_content">
<RelativeLayout
android:id="@+id/top_banner"
android:layout_width="match_parent"
android:layout_height="@dimen/layout_height_header">
<ImageView
android:id="@+id/banner_pp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
app:layout_collapseMode="parallax"
2018-12-10 14:58:45 +01:00
android:contentDescription="@string/profile_banner" />
2017-12-02 12:23:38 +01:00
<ImageView
2017-12-09 12:14:36 +01:00
android:padding="1dp"
android:layout_margin="10dp"
2017-11-03 19:12:34 +01:00
android:id="@+id/account_pp"
2017-12-09 12:14:36 +01:00
android:layout_width="130dp"
android:layout_height="130dp"
2017-11-03 19:12:34 +01:00
app:layout_scrollFlags="scroll"
2017-12-09 12:14:36 +01:00
android:background="@drawable/circle_background_white"
2017-11-03 19:12:34 +01:00
android:layout_centerInParent="true"
2018-12-10 14:58:45 +01:00
android:contentDescription="@string/profile_picture" />
2017-10-15 15:09:09 +02:00
<android.support.design.widget.FloatingActionButton
2017-11-03 19:12:34 +01:00
android:id="@+id/account_follow"
2017-10-15 15:09:09 +02:00
android:visibility="gone"
app:fabSize="mini"
android:textAllCaps="false"
2017-11-03 19:12:34 +01:00
android:layout_toRightOf="@id/account_pp"
android:layout_toEndOf="@id/account_pp"
app:layout_anchorGravity="center_vertical|right"
android:layout_centerVertical="true"
android:layout_marginEnd="10dp"
android:layout_marginRight="10dp"
2017-10-15 15:09:09 +02:00
android:layout_width="40dp"
android:layout_height="40dp"
/>
2017-11-03 19:12:34 +01:00
<android.support.design.widget.FloatingActionButton
android:id="@+id/header_edit_profile"
android:visibility="gone"
app:fabSize="mini"
android:textAllCaps="false"
android:src="@drawable/ic_edit"
android:layout_marginStart="-50dp"
android:layout_marginLeft="-50dp"
android:layout_marginTop="100dp"
android:layout_toRightOf="@id/account_pp"
android:layout_toEndOf="@id/account_pp"
android:layout_alignTop="@+id/account_pp"
android:layout_width="40dp"
android:layout_height="40dp" />
2017-10-15 15:09:09 +02:00
<ImageButton
android:id="@+id/account_menu"
android:background="?attr/selectableItemBackgroundBorderless"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
2017-10-28 17:59:50 +02:00
android:src="@drawable/ic_more_vert"
2017-10-15 15:09:09 +02:00
android:layout_marginRight="10dp"
android:layout_marginEnd="10dp"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_marginTop="5dp"
2018-12-10 14:58:45 +01:00
android:contentDescription="@string/open_menu" />
2017-10-15 15:09:09 +02:00
</RelativeLayout>
<LinearLayout
2017-10-15 15:09:09 +02:00
android:layout_below="@+id/top_banner"
android:id="@+id/main_header_container"
android:layout_width="500dp"
android:layout_centerHorizontal="true"
2017-10-15 15:09:09 +02:00
android:layout_height="wrap_content"
android:paddingTop="8dp"
android:gravity="center"
app:layout_scrollFlags="scroll|enterAlways"
2017-10-15 15:09:09 +02:00
android:orientation="vertical">
2017-10-14 11:09:12 +02:00
<LinearLayout
2017-10-15 15:09:09 +02:00
android:id="@+id/header_container"
android:layout_marginTop="5dp"
2017-10-14 11:09:12 +02:00
android:layout_width="match_parent"
2017-10-15 15:09:09 +02:00
android:gravity="center"
android:orientation="horizontal"
2017-10-14 11:09:12 +02:00
android:layout_height="wrap_content"
android:baselineAligned="false">
2017-10-15 15:09:09 +02:00
<LinearLayout
android:layout_width="0dp"
android:layout_weight="1"
android:orientation="vertical"
android:layout_gravity="center_horizontal"
android:gravity="center_horizontal"
android:layout_height="wrap_content"
tools:ignore="UselessParent">
2017-10-15 15:09:09 +02:00
<TextView
android:id="@+id/account_dn"
2018-05-11 15:55:54 +02:00
android:textColor="?colorAccent"
2017-10-15 15:09:09 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:textSize="16sp"
android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
2018-10-22 16:18:11 +02:00
<TextView
android:textColor="?attr/color_in_account_header"
android:id="@+id/account_un"
android:maxLines="1"
2017-10-15 15:09:09 +02:00
android:layout_width="wrap_content"
2018-10-22 16:18:11 +02:00
android:textSize="14sp"
2017-10-15 15:09:09 +02:00
android:layout_height="wrap_content"
2018-10-22 16:18:11 +02:00
/>
<TextView
android:layout_marginTop="5dp"
android:visibility="gone"
android:textColor="@color/red_1"
android:background="@drawable/red_border"
android:text="Peertube"
android:id="@+id/account_type"
android:layout_width="wrap_content"
2019-02-06 14:59:52 +01:00
android:layout_height="wrap_content" />
<TextView
android:layout_marginTop="5dp"
android:visibility="gone"
android:textColor="@color/mastodonC4"
android:background="@drawable/blue_border"
android:text="@string/bot"
android:id="@+id/account_bot"
android:layout_width="wrap_content"
2018-10-22 16:18:11 +02:00
android:layout_height="wrap_content" />
<TextView
android:id="@+id/temp_mute"
android:visibility="gone"
android:gravity="center"
android:textColor="@color/red"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
2017-10-15 15:09:09 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-01-02 14:50:49 +01:00
android:orientation="vertical">
2017-10-15 15:09:09 +02:00
<TextView
2019-01-02 14:50:49 +01:00
android:textColor="@color/verified_text"
android:background="@drawable/green_border"
2017-10-15 15:09:09 +02:00
android:visibility="gone"
android:id="@+id/account_followed_by"
android:layout_gravity="center"
android:gravity="center"
android:text="@string/followed_by"
android:maxLines="1"
2019-01-02 14:50:49 +01:00
android:layout_width="wrap_content"
2017-10-15 15:09:09 +02:00
android:layout_height="wrap_content" />
<TextView
android:id="@+id/account_follow_request"
2019-01-02 14:50:49 +01:00
android:textColor="@color/mastodonC4"
android:background="@drawable/blue_border"
2017-10-15 15:09:09 +02:00
android:visibility="gone"
android:layout_gravity="center"
android:gravity="center"
android:text="@string/request_sent"
android:maxLines="1"
2019-01-02 14:50:49 +01:00
android:layout_width="wrap_content"
2017-10-15 15:09:09 +02:00
android:layout_height="wrap_content"
/>
</LinearLayout>
<TextView
android:layout_marginTop="5dp"
android:textSize="16sp"
android:drawablePadding="4dp"
android:visibility="gone"
android:id="@+id/account_moved"
android:gravity="center"
android:layout_gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
2017-10-15 15:09:09 +02:00
</LinearLayout>
2017-08-23 09:56:42 +02:00
</LinearLayout>
2017-10-15 15:09:09 +02:00
<TextView
android:id="@+id/account_note"
android:padding="10dp"
android:layout_marginTop="5dp"
android:gravity="center"
android:textColor="?attr/color_in_account_header"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<!-- Fields container -->
<LinearLayout
android:visibility="gone"
android:id="@+id/fields_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<!-- Fields 1 to 4 -->
<LinearLayout
android:id="@+id/field1"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/label1"
android:padding="5dp"
android:minHeight="20dp"
android:layout_gravity="center"
android:gravity="center"
2018-10-03 09:16:24 +02:00
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:textSize="16sp"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent" />
2018-10-03 09:16:24 +02:00
<LinearLayout
android:layout_width="0dp"
android:layout_weight="2"
2018-10-03 09:16:24 +02:00
android:id="@+id/value1BG"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/value1"
android:layout_gravity="center"
android:gravity="center"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/field2"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/label2"
2018-10-03 09:16:24 +02:00
android:padding="10dp"
android:minHeight="20dp"
android:layout_width="0dp"
android:textSize="16sp"
2018-10-03 09:16:24 +02:00
android:paddingTop="5dp"
android:paddingBottom="5dp"
android:layout_gravity="center"
android:gravity="center"
android:layout_weight="1"
android:layout_height="match_parent" />
2018-10-03 09:16:24 +02:00
<LinearLayout
android:layout_width="0dp"
android:layout_weight="2"
2018-10-03 09:16:24 +02:00
android:id="@+id/value2BG"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/value2"
android:layout_gravity="center"
android:gravity="center"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/field3"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/label3"
2018-10-03 09:16:24 +02:00
android:padding="10dp"
android:minHeight="20dp"
android:textSize="16sp"
android:layout_gravity="center"
android:gravity="center"
android:layout_width="0dp"
android:layout_weight="1"
2018-10-03 09:16:24 +02:00
android:paddingTop="5dp"
android:paddingBottom="5dp"
android:layout_height="match_parent" />
2018-10-03 09:16:24 +02:00
<LinearLayout
android:layout_width="0dp"
android:layout_weight="2"
2018-10-03 09:16:24 +02:00
android:layout_height="match_parent"
android:id="@+id/value3BG"
android:orientation="vertical">
<TextView
android:id="@+id/value3"
android:layout_gravity="center"
android:gravity="center"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/field4"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/label4"
2018-10-03 09:16:24 +02:00
android:padding="10dp"
android:minHeight="20dp"
android:textSize="16sp"
android:layout_gravity="center"
android:gravity="center"
android:layout_width="0dp"
2018-10-03 09:16:24 +02:00
android:paddingTop="5dp"
android:paddingBottom="5dp"
android:layout_weight="1"
android:layout_height="match_parent" />
2018-10-03 09:16:24 +02:00
<LinearLayout
android:layout_width="0dp"
android:layout_weight="2"
2018-10-03 09:16:24 +02:00
android:layout_height="match_parent"
android:id="@+id/value4BG"
android:orientation="vertical">
<TextView
android:id="@+id/value4"
android:layout_gravity="center"
android:gravity="center"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<!-- End Fields container -->
</LinearLayout>
2017-10-15 15:09:09 +02:00
</RelativeLayout>
2017-10-14 11:09:12 +02:00
2017-10-15 15:09:09 +02:00
</android.support.design.widget.CollapsingToolbarLayout>
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
2017-10-14 10:14:55 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-10-15 15:09:09 +02:00
android:minHeight="?attr/actionBarSize"
app:layout_collapseMode="pin"
app:theme="@style/ThemeOverlay.AppCompat.Light"
>
<LinearLayout
android:id="@+id/toolbar_content"
android:animationCache="true"
2017-11-09 19:09:00 +01:00
android:visibility="gone"
2017-10-14 11:09:12 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-10-15 15:09:09 +02:00
android:orientation="horizontal">
<ImageView
android:id="@+id/pp_actionBar"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_gravity="center_vertical"
android:gravity="center_vertical"
android:layout_marginEnd="10dp"
android:layout_marginRight="10dp"
2018-12-10 14:58:45 +01:00
android:contentDescription="@string/profile_picture" />
2017-10-15 15:09:09 +02:00
<TextView
android:layout_marginLeft="5dp"
android:layout_marginStart="5dp"
android:layout_gravity="center_vertical"
android:id="@+id/show_account_title"
android:maxLines="1"
android:layout_width="0dp"
android:layout_weight="1"
2017-10-15 15:09:09 +02:00
android:layout_height="wrap_content"
android:textSize="14sp"
android:textColor="?attr/actionBarTextColor"
/>
<ImageButton
android:background="?attr/selectableItemBackgroundBorderless"
android:id="@+id/action_more"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_gravity="center"
android:src="@drawable/ic_more_vert"
android:layout_marginEnd="10dp"
android:layout_marginRight="10dp"
android:gravity="center"
2018-12-10 14:58:45 +01:00
android:contentDescription="@string/display_toot_truncate" />
2017-10-15 15:09:09 +02:00
</LinearLayout>
<TextView
android:id="@+id/warning_message"
android:visibility="gone"
android:gravity="center"
android:layout_gravity="center"
2017-11-03 19:12:34 +01:00
android:textColor="@color/dark_text"
android:text="@string/disclaimer_full"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
2017-10-15 15:09:09 +02:00
</android.support.v7.widget.Toolbar>
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:tabMode="fixed"
app:tabGravity="fill"
/>
</android.support.design.widget.AppBarLayout>
2017-10-14 11:09:12 +02:00
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>