2019-09-06 17:55:14 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?><!--
|
2017-05-05 16:36:04 +02:00
|
|
|
Copyright 2017 Thomas Schneider
|
|
|
|
|
2019-05-18 11:10:30 +02:00
|
|
|
This file is a part of Fedilab
|
2017-05-05 16:36:04 +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.
|
|
|
|
|
2019-05-18 11:10:30 +02:00
|
|
|
Fedilab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
2017-05-05 16:36:04 +02:00
|
|
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
|
|
|
Public License for more details.
|
|
|
|
|
2019-05-18 11:10:30 +02:00
|
|
|
You should have received a copy of the GNU General Public License along with Fedilab; if not,
|
2017-05-05 16:36:04 +02:00
|
|
|
see <http://www.gnu.org/licenses>.
|
|
|
|
-->
|
2019-09-06 17:55:14 +02:00
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-08-23 09:56:42 +02:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2017-05-05 16:36:04 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2017-10-14 10:14:55 +02:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2017-08-23 09:56:42 +02:00
|
|
|
android:fitsSystemWindows="true"
|
2019-05-18 11:10:30 +02:00
|
|
|
tools:context="app.fedilab.android.activities.ShowAccountActivity">
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2019-06-11 19:38:26 +02:00
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
2017-08-23 09:56:42 +02:00
|
|
|
android:id="@+id/appBar"
|
2017-05-05 16:36:04 +02:00
|
|
|
android:layout_width="match_parent"
|
2017-05-26 17:20:36 +02:00
|
|
|
android:layout_height="wrap_content"
|
2017-08-23 09:56:42 +02:00
|
|
|
android:fitsSystemWindows="true"
|
|
|
|
android:theme="@style/AppTheme.AppBarOverlay">
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2019-06-11 19:38:26 +02:00
|
|
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
2017-07-31 19:29:14 +02:00
|
|
|
android:layout_width="match_parent"
|
2017-10-13 19:38:36 +02:00
|
|
|
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 10:14:55 +02:00
|
|
|
app:expandedTitleMarginStart="48dp"
|
|
|
|
app:expandedTitleMarginEnd="64dp"
|
2018-01-05 10:01:59 +01:00
|
|
|
app:layout_scrollFlags="scroll">
|
2019-09-06 17:55:14 +02:00
|
|
|
|
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">
|
2019-08-02 18:06:30 +02:00
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2017-10-15 15:09:09 +02:00
|
|
|
android:id="@+id/top_banner"
|
|
|
|
android:layout_width="match_parent"
|
2019-08-02 18:06:30 +02:00
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
2017-10-15 15:09:09 +02:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/banner_pp"
|
|
|
|
android:layout_width="match_parent"
|
2019-08-02 18:06:30 +02:00
|
|
|
android:layout_height="@dimen/layout_height_header"
|
|
|
|
android:contentDescription="@string/profile_banner"
|
2017-10-15 15:09:09 +02:00
|
|
|
android:scaleType="centerCrop"
|
2019-08-05 10:59:21 +02:00
|
|
|
android:src="@drawable/default_banner"
|
2017-10-15 15:09:09 +02:00
|
|
|
app:layout_collapseMode="parallax"
|
2019-08-02 18:06:30 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
2017-12-02 12:23:38 +01:00
|
|
|
<ImageView
|
2017-11-03 19:12:34 +01:00
|
|
|
android:id="@+id/account_pp"
|
2019-08-02 18:06:30 +02:00
|
|
|
android:layout_width="100dp"
|
|
|
|
android:layout_height="100dp"
|
|
|
|
android:layout_margin="10dp"
|
2019-08-04 10:00:21 +02:00
|
|
|
style="@style/Widget.AppCompat.Button.Colored"
|
2019-08-03 10:35:04 +02:00
|
|
|
android:background="@drawable/account_pp_border_light"
|
2019-08-02 18:06:30 +02:00
|
|
|
android:contentDescription="@string/profile_picture"
|
2019-08-02 20:52:05 +02:00
|
|
|
android:padding="2dp"
|
2019-08-02 18:06:30 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="@id/banner_pp"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/banner_pp"
|
|
|
|
app:layout_scrollFlags="scroll" />
|
2019-08-02 13:41:08 +02:00
|
|
|
|
2019-08-04 10:00:21 +02:00
|
|
|
<ImageButton
|
2017-11-03 19:12:34 +01:00
|
|
|
android:id="@+id/account_follow"
|
2019-08-04 10:00:21 +02:00
|
|
|
android:layout_width="45dp"
|
|
|
|
android:layout_height="45dp"
|
2019-08-02 18:06:30 +02:00
|
|
|
android:layout_marginStart="10dp"
|
2019-08-04 10:00:21 +02:00
|
|
|
style="@style/Widget.AppCompat.Button.Colored"
|
2019-08-02 18:06:30 +02:00
|
|
|
android:layout_marginTop="10dp"
|
2019-08-04 10:00:21 +02:00
|
|
|
android:scaleType="fitCenter"
|
2019-08-02 18:06:30 +02:00
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/account_pp"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/banner_pp" />
|
|
|
|
|
2019-08-04 10:00:21 +02:00
|
|
|
<ImageButton
|
2017-11-03 19:12:34 +01:00
|
|
|
android:id="@+id/header_edit_profile"
|
2019-08-04 10:00:21 +02:00
|
|
|
android:layout_width="45dp"
|
|
|
|
android:layout_height="45dp"
|
2019-08-02 18:06:30 +02:00
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:src="@drawable/ic_edit"
|
2019-08-04 10:00:21 +02:00
|
|
|
style="@style/Widget.AppCompat.Button.Colored"
|
|
|
|
android:scaleType="fitCenter"
|
2017-11-03 19:12:34 +01:00
|
|
|
android:visibility="gone"
|
2019-08-02 18:06:30 +02:00
|
|
|
app:layout_constraintStart_toEndOf="@id/account_pp"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/banner_pp" />
|
2019-09-12 19:15:14 +02:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/account_personal_note"
|
|
|
|
android:layout_width="45dp"
|
|
|
|
android:layout_height="45dp"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:src="@drawable/ic_note"
|
|
|
|
style="@style/Widget.AppCompat.Button.Colored"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/account_follow"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/banner_pp" />
|
2019-08-05 09:12:58 +02:00
|
|
|
<View
|
|
|
|
android:id="@+id/fake_actionbar"
|
2019-08-04 18:09:35 +02:00
|
|
|
android:layout_width="match_parent"
|
2019-08-05 09:12:58 +02:00
|
|
|
android:layout_height="50dp"
|
|
|
|
android:alpha="0.4"
|
2019-08-04 18:09:35 +02:00
|
|
|
android:background="@color/black"
|
2019-08-05 09:12:58 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2019-08-04 18:09:35 +02:00
|
|
|
|
2019-08-05 09:12:58 +02:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/action_back"
|
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:contentDescription="@string/go_back"
|
|
|
|
android:src="@drawable/ic_back"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2019-08-04 18:09:35 +02:00
|
|
|
|
2019-08-05 09:12:58 +02:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/account_menu"
|
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:contentDescription="@string/open_menu"
|
|
|
|
android:src="@drawable/ic_more_vert"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2019-08-02 18:06:30 +02:00
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
2017-07-31 20:18:14 +02:00
|
|
|
<LinearLayout
|
2017-10-15 15:09:09 +02:00
|
|
|
android:layout_below="@+id/top_banner"
|
|
|
|
android:id="@+id/main_header_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
android:gravity="center"
|
2018-01-05 10:01:59 +01:00
|
|
|
app:layout_scrollFlags="scroll|enterAlways"
|
2017-10-15 15:09:09 +02:00
|
|
|
android:orientation="vertical">
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2017-08-23 09:56:42 +02:00
|
|
|
<LinearLayout
|
2017-10-15 15:09:09 +02:00
|
|
|
android:id="@+id/header_container"
|
|
|
|
android:layout_marginTop="5dp"
|
2017-08-23 09:56:42 +02:00
|
|
|
android:layout_width="match_parent"
|
2017-10-15 15:09:09 +02:00
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="horizontal"
|
2017-08-23 09:56:42 +02:00
|
|
|
android:layout_height="wrap_content"
|
2017-12-17 10:09:16 +01:00
|
|
|
android:baselineAligned="false">
|
2019-09-06 17:55:14 +02:00
|
|
|
|
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"
|
2017-12-17 10:09:16 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
tools:ignore="UselessParent">
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2017-10-15 15:09:09 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/account_dn"
|
2019-11-07 17:52:12 +01: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"
|
2019-04-21 10:51:37 +02:00
|
|
|
android:textSize="18sp"
|
2017-10-15 15:09:09 +02:00
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2018-10-22 16:18:11 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/account_un"
|
|
|
|
android:maxLines="1"
|
2017-10-15 15:09:09 +02:00
|
|
|
android:layout_width="wrap_content"
|
2019-04-21 10:51:37 +02:00
|
|
|
android:textSize="16sp"
|
2019-09-06 17:55:14 +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"
|
|
|
|
android:layout_height="wrap_content" />
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2018-12-22 11:08:04 +01:00
|
|
|
<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"
|
|
|
|
android:layout_height="wrap_content" />
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2018-01-04 18:43:33 +01:00
|
|
|
<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" />
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2017-10-15 15:09:09 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-01-02 14:47:33 +01:00
|
|
|
android:orientation="vertical">
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2017-10-15 15:09:09 +02:00
|
|
|
<TextView
|
|
|
|
android:visibility="gone"
|
2019-01-02 14:47:33 +01:00
|
|
|
android:layout_marginTop="5dp"
|
2017-10-15 15:09:09 +02:00
|
|
|
android:id="@+id/account_followed_by"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"
|
2019-01-02 14:47:33 +01:00
|
|
|
android:textColor="@color/verified_text"
|
|
|
|
android:background="@drawable/green_border"
|
2017-10-15 15:09:09 +02:00
|
|
|
android:text="@string/followed_by"
|
|
|
|
android:maxLines="1"
|
2019-01-02 14:47:33 +01:00
|
|
|
android:layout_width="wrap_content"
|
2017-10-15 15:09:09 +02:00
|
|
|
android:layout_height="wrap_content" />
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2017-10-15 15:09:09 +02:00
|
|
|
<TextView
|
|
|
|
android:visibility="gone"
|
2019-01-02 14:47:33 +01:00
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:id="@+id/account_follow_request"
|
|
|
|
android:textColor="@color/mastodonC4"
|
|
|
|
android:background="@drawable/blue_border"
|
2017-10-15 15:09:09 +02:00
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/request_sent"
|
|
|
|
android:maxLines="1"
|
2019-01-02 14:47:33 +01:00
|
|
|
android:layout_width="wrap_content"
|
2019-09-06 17:55:14 +02:00
|
|
|
android:layout_height="wrap_content" />
|
2017-10-15 15:09:09 +02:00
|
|
|
</LinearLayout>
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2017-12-17 10:09:16 +01:00
|
|
|
<TextView
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:drawablePadding="4dp"
|
|
|
|
android:id="@+id/account_moved"
|
|
|
|
android:gravity="center"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content" />
|
2019-08-14 17:29:21 +02:00
|
|
|
|
2017-10-15 15:09:09 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
2017-08-23 09:56:42 +02:00
|
|
|
</LinearLayout>
|
2019-09-06 17:55:14 +02:00
|
|
|
|
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:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content" />
|
2018-05-20 10:34:32 +02:00
|
|
|
|
2019-08-14 17:29:21 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"
|
|
|
|
android:layout_marginBottom="10dp"
|
|
|
|
android:orientation="horizontal">
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2019-08-14 17:29:21 +02:00
|
|
|
<TextView
|
|
|
|
android:gravity="center"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:textColor="@color/mastodonC4"
|
|
|
|
android:background="@drawable/blue_border"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:id="@+id/instance_info"
|
|
|
|
android:layout_marginEnd="5dp"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content" />
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2019-08-14 17:29:21 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/seperator"
|
|
|
|
android:text="-"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:gravity="center"
|
|
|
|
android:layout_marginEnd="5dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content" />
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2019-08-14 17:29:21 +02:00
|
|
|
<TextView
|
|
|
|
android:gravity="center"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:id="@+id/account_date"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|
2018-05-20 10:34:32 +02:00
|
|
|
<!-- 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">
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2018-05-20 10:34:32 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/label1"
|
|
|
|
android:padding="5dp"
|
|
|
|
android:minHeight="20dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"
|
2018-09-28 07:31:07 +02:00
|
|
|
android:paddingTop="10dp"
|
|
|
|
android:paddingBottom="10dp"
|
2018-05-20 10:34:32 +02:00
|
|
|
android:textSize="16sp"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_height="match_parent" />
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2018-09-27 19:33:22 +02:00
|
|
|
<LinearLayout
|
2018-05-20 10:34:32 +02:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="2"
|
2018-09-27 19:33:22 +02:00
|
|
|
|
|
|
|
android:id="@+id/value1BG"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical">
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2018-09-27 19:33:22 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/value1"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"
|
2018-09-28 07:31:07 +02:00
|
|
|
android:paddingTop="10dp"
|
|
|
|
android:paddingBottom="10dp"
|
2018-09-27 19:33:22 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2018-05-20 10:34:32 +02:00
|
|
|
</LinearLayout>
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2018-05-20 10:34:32 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/field2"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2018-05-20 10:34:32 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/label2"
|
2018-09-28 07:31:07 +02:00
|
|
|
android:padding="10dp"
|
2018-05-20 10:34:32 +02:00
|
|
|
android:minHeight="20dp"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:textSize="16sp"
|
2018-09-27 19:33:22 +02:00
|
|
|
android:paddingTop="5dp"
|
|
|
|
android:paddingBottom="5dp"
|
2018-05-20 10:34:32 +02:00
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_height="match_parent" />
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2018-09-27 19:33:22 +02:00
|
|
|
<LinearLayout
|
2018-05-20 10:34:32 +02:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="2"
|
2018-09-27 19:33:22 +02:00
|
|
|
|
|
|
|
android:id="@+id/value2BG"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical">
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2018-09-27 19:33:22 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/value2"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"
|
2018-09-28 07:31:07 +02:00
|
|
|
android:paddingTop="10dp"
|
|
|
|
android:paddingBottom="10dp"
|
2018-09-27 19:33:22 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2018-05-20 10:34:32 +02:00
|
|
|
</LinearLayout>
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2018-05-20 10:34:32 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/field3"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2018-05-20 10:34:32 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/label3"
|
2018-09-28 07:31:07 +02:00
|
|
|
android:padding="10dp"
|
2018-05-20 10:34:32 +02:00
|
|
|
android:minHeight="20dp"
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
2018-09-27 19:33:22 +02:00
|
|
|
android:paddingTop="5dp"
|
|
|
|
android:paddingBottom="5dp"
|
2018-05-20 10:34:32 +02:00
|
|
|
android:layout_height="match_parent" />
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2018-09-27 19:33:22 +02:00
|
|
|
<LinearLayout
|
2018-05-20 10:34:32 +02:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="2"
|
2018-09-27 19:33:22 +02:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:id="@+id/value3BG"
|
|
|
|
android:orientation="vertical">
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2018-09-27 19:33:22 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/value3"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"
|
2018-09-28 07:31:07 +02:00
|
|
|
android:paddingTop="10dp"
|
|
|
|
android:paddingBottom="10dp"
|
2018-09-27 19:33:22 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent" />
|
|
|
|
</LinearLayout>
|
2018-05-20 10:34:32 +02:00
|
|
|
</LinearLayout>
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2018-05-20 10:34:32 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/field4"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2018-05-20 10:34:32 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/label4"
|
2018-09-28 07:31:07 +02:00
|
|
|
android:padding="10dp"
|
2018-05-20 10:34:32 +02:00
|
|
|
android:minHeight="20dp"
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"
|
|
|
|
android:layout_width="0dp"
|
2018-09-27 19:33:22 +02:00
|
|
|
android:paddingTop="5dp"
|
|
|
|
android:paddingBottom="5dp"
|
2018-05-20 10:34:32 +02:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_height="match_parent" />
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2018-09-27 19:33:22 +02:00
|
|
|
<LinearLayout
|
2018-05-20 10:34:32 +02:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="2"
|
2018-09-27 19:33:22 +02:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:id="@+id/value4BG"
|
|
|
|
android:orientation="vertical">
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2018-09-27 19:33:22 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/value4"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"
|
2018-09-28 07:31:07 +02:00
|
|
|
android:paddingTop="10dp"
|
|
|
|
android:paddingBottom="10dp"
|
2018-09-27 19:33:22 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
2018-05-20 10:34:32 +02:00
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- End Fields container -->
|
2017-07-31 20:18:14 +02:00
|
|
|
</LinearLayout>
|
2017-10-15 15:09:09 +02:00
|
|
|
</RelativeLayout>
|
2017-10-14 10:14:55 +02:00
|
|
|
|
2019-06-11 19:38:26 +02:00
|
|
|
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
2017-10-15 15:09:09 +02:00
|
|
|
|
2019-06-11 19:38:26 +02:00
|
|
|
<androidx.appcompat.widget.Toolbar
|
2017-10-15 15:09:09 +02:00
|
|
|
android:id="@+id/toolbar"
|
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:minHeight="?attr/actionBarSize"
|
|
|
|
app:layout_collapseMode="pin"
|
2019-09-06 17:55:14 +02:00
|
|
|
app:theme="@style/ThemeOverlay.AppCompat.Light">
|
|
|
|
|
2017-10-15 15:09:09 +02:00
|
|
|
<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">
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2017-10-15 15:09:09 +02:00
|
|
|
<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 09:22:50 +01:00
|
|
|
android:contentDescription="@string/profile_picture" />
|
2019-09-06 17:55:14 +02:00
|
|
|
|
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"
|
2017-10-30 13:26:22 +01:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
2017-10-15 15:09:09 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textSize="14sp"
|
2019-11-07 18:57:05 +01:00
|
|
|
/>
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2019-08-14 18:55:45 +02:00
|
|
|
<ImageButton
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:id="@+id/reload_tabs"
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="30dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:src="@drawable/ic_refresh"
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:contentDescription="@string/refresh" />
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2017-10-30 13:26:22 +01:00
|
|
|
<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 09:22:50 +01:00
|
|
|
android:contentDescription="@string/display_toot_truncate" />
|
2017-10-15 15:09:09 +02:00
|
|
|
</LinearLayout>
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2017-11-03 08:01:56 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/warning_message"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:gravity="center"
|
|
|
|
android:layout_gravity="center"
|
2017-11-04 08:23:45 +01:00
|
|
|
android:textColor="@color/dark_text"
|
2017-11-03 08:01:56 +01:00
|
|
|
android:text="@string/disclaimer_full"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content" />
|
2019-06-11 19:38:26 +02:00
|
|
|
</androidx.appcompat.widget.Toolbar>
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2019-06-11 19:38:26 +02:00
|
|
|
<com.google.android.material.tabs.TabLayout
|
2017-10-14 10:14:55 +02:00
|
|
|
android:id="@+id/account_tabLayout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-11-07 18:57:05 +01:00
|
|
|
android:background="?attr/colorPrimary"
|
2019-11-07 17:52:12 +01:00
|
|
|
app:tabSelectedTextColor="?colorAccent"
|
2017-10-14 10:14:55 +02:00
|
|
|
app:tabMode="fixed"
|
2019-09-06 17:55:14 +02:00
|
|
|
app:tabGravity="fill" />
|
2019-06-11 19:38:26 +02:00
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
2017-10-14 11:09:12 +02:00
|
|
|
|
2019-06-11 19:38:26 +02:00
|
|
|
<androidx.viewpager.widget.ViewPager
|
2017-08-23 09:56:42 +02:00
|
|
|
android:id="@+id/account_viewpager"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-09-06 17:55:14 +02:00
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
2017-08-23 09:56:42 +02:00
|
|
|
|
2017-11-03 19:12:34 +01:00
|
|
|
|
2019-06-11 19:38:26 +02:00
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|