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>
|
|
|
|
-->
|
2018-01-10 10:37:55 +01:00
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-05-05 16:36:04 +02:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2018-01-10 10:37:55 +01:00
|
|
|
android:id="@+id/container"
|
2019-11-20 14:14:47 +01:00
|
|
|
android:background="?colorPrimaryDark"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:layout_width="match_parent"
|
2019-09-06 17:55:14 +02:00
|
|
|
android:layout_height="@dimen/nav_header_height">
|
|
|
|
|
2018-04-23 17:53:54 +02:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/back_ground_image"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:contentDescription="@string/profile_banner"
|
|
|
|
android:scaleType="centerCrop" />
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2017-05-05 16:36:04 +02:00
|
|
|
<LinearLayout
|
2019-11-15 16:32:25 +01:00
|
|
|
android:id="@+id/main_header_container"
|
2017-09-23 12:08:52 +02:00
|
|
|
android:layout_width="match_parent"
|
2018-01-10 10:37:55 +01:00
|
|
|
android:layout_height="match_parent"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:layout_alignParentTop="true"
|
2017-09-23 12:08:52 +02:00
|
|
|
android:gravity="center_vertical"
|
2018-01-10 10:37:55 +01:00
|
|
|
android:orientation="vertical"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:padding="@dimen/activity_horizontal_margin">
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2017-09-23 14:14:15 +02:00
|
|
|
<LinearLayout
|
2018-01-10 10:37:55 +01:00
|
|
|
android:layout_width="match_parent"
|
2017-09-23 14:14:15 +02:00
|
|
|
android:layout_height="wrap_content"
|
2018-01-10 10:37:55 +01:00
|
|
|
android:layout_gravity="center_vertical"
|
2017-08-28 08:57:29 +02:00
|
|
|
android:gravity="center_vertical"
|
2018-01-10 10:37:55 +01:00
|
|
|
android:orientation="horizontal">
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2018-01-10 10:37:55 +01:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/profilePicture"
|
|
|
|
android:layout_width="60dp"
|
|
|
|
android:layout_height="60dp"
|
2019-09-06 17:55:14 +02:00
|
|
|
android:contentDescription="@string/profile_picture" />
|
|
|
|
|
2018-01-10 10:37:55 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:layout_height="wrap_content"
|
2019-11-08 18:53:57 +01:00
|
|
|
android:layout_marginStart="20dp"
|
2018-12-22 16:43:16 +01:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="horizontal"
|
2019-11-15 16:32:25 +01:00
|
|
|
tools:ignore="UselessLeaf" />
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2018-12-22 16:43:16 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/more_account_container"
|
|
|
|
android:layout_width="0dp"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:layout_height="wrap_content"
|
2019-11-08 18:53:57 +01:00
|
|
|
android:layout_marginStart="20dp"
|
2018-01-10 10:37:55 +01:00
|
|
|
android:layout_weight="1"
|
2018-11-04 16:00:44 +01:00
|
|
|
android:orientation="horizontal"
|
2019-11-15 16:32:25 +01:00
|
|
|
tools:ignore="UselessLeaf" />
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2018-01-10 10:37:55 +01:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/header_option_menu"
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="30dp"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:contentDescription="@string/truncate_long_toots"
|
|
|
|
android:gravity="center_vertical|end"
|
|
|
|
android:src="@drawable/ic_more_vert"
|
|
|
|
android:tint="?attr/iconColorMenu" />
|
2018-01-10 10:37:55 +01:00
|
|
|
</LinearLayout>
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2018-01-10 10:37:55 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:layout_marginTop="10dp"
|
2018-01-10 10:37:55 +01:00
|
|
|
android:orientation="horizontal"
|
|
|
|
tools:ignore="UseCompoundDrawables">
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2018-01-10 10:37:55 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/displayedName"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:textSize="18sp" />
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2019-11-08 18:45:41 +01:00
|
|
|
<ImageView
|
2018-01-10 10:37:55 +01:00
|
|
|
android:id="@+id/owner_accounts"
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="30dp"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:layout_marginStart="5dp"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:src="@drawable/ic_arrow_drop_down"
|
|
|
|
android:tint="?attr/iconColorMenu"
|
2019-11-08 18:45:41 +01:00
|
|
|
tools:ignore="ContentDescription" />
|
2018-01-10 10:37:55 +01:00
|
|
|
</LinearLayout>
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2018-01-10 10:37:55 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/username"
|
|
|
|
android:layout_width="wrap_content"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:layout_height="wrap_content"
|
2018-01-10 10:37:55 +01:00
|
|
|
android:maxLines="1"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:textSize="12sp" />
|
2019-09-06 17:55:14 +02:00
|
|
|
|
2018-01-10 10:37:55 +01:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/header_option_info"
|
|
|
|
android:layout_width="20dp"
|
|
|
|
android:layout_height="20dp"
|
2019-11-15 16:32:25 +01:00
|
|
|
android:layout_gravity="center_vertical|end"
|
|
|
|
android:contentDescription="@string/information"
|
|
|
|
android:src="@drawable/ic_info_outline"
|
|
|
|
android:tint="?attr/iconColorMenu" />
|
2017-05-05 16:36:04 +02:00
|
|
|
</LinearLayout>
|
2018-04-23 17:53:54 +02:00
|
|
|
|
2018-01-10 10:37:55 +01:00
|
|
|
</RelativeLayout>
|