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

126 lines
5.0 KiB
XML
Raw Normal View History

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"
2017-10-28 17:15:06 +02:00
xmlns:app="http://schemas.android.com/apk/res-auto"
2017-05-05 16:36:04 +02:00
android:layout_width="match_parent"
2018-01-10 10:37:55 +01:00
android:id="@+id/container"
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_alignParentTop="true"
android:scaleType="centerCrop"
android:layout_width="match_parent"
android:layout_height="match_parent"
2018-12-10 14:58:45 +01:00
android:contentDescription="@string/profile_banner" />
2019-09-06 17:55:14 +02:00
2017-05-05 16:36:04 +02:00
<LinearLayout
2018-01-10 10:37:55 +01:00
android:layout_alignParentTop="true"
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"
android:id="@+id/main_header_container"
2017-09-23 12:08:52 +02:00
android:gravity="center_vertical"
2018-01-10 10:37:55 +01:00
android:orientation="vertical"
android:padding="@dimen/activity_horizontal_margin"
android:theme="@style/ThemeOverlay.AppCompat.Dark">
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
2018-11-04 16:00:44 +01:00
android:id="@+id/more_option_container"
2018-01-10 10:37:55 +01:00
android:layout_width="0dp"
2018-12-22 16:43:16 +01:00
android:paddingLeft="20dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:orientation="horizontal"
2019-09-06 17:55:14 +02:00
tools:ignore="UselessLeaf"></LinearLayout>
2018-12-22 16:43:16 +01:00
<LinearLayout
android:id="@+id/more_account_container"
android:layout_width="0dp"
android:paddingLeft="20dp"
2018-01-10 10:37:55 +01:00
android:layout_weight="1"
android:layout_height="wrap_content"
2018-11-04 16:00:44 +01:00
android:orientation="horizontal"
2019-09-06 17:55:14 +02:00
tools:ignore="UselessLeaf"></LinearLayout>
2018-01-10 10:37:55 +01:00
<ImageView
android:gravity="center_vertical|end"
android:src="@drawable/ic_more_vert"
android:id="@+id/header_option_menu"
android:layout_width="30dp"
android:layout_height="30dp"
2018-12-10 14:58:45 +01:00
android:contentDescription="@string/truncate_long_toots" />
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_marginTop="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
tools:ignore="UseCompoundDrawables">
2019-09-06 17:55:14 +02:00
2018-01-10 10:37:55 +01:00
<TextView
android:gravity="center_vertical"
android:id="@+id/displayedName"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:textSize="18sp"
android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
2019-09-06 17:55:14 +02:00
2019-06-11 19:38:26 +02:00
<androidx.appcompat.widget.AppCompatImageView
2018-01-10 10:37:55 +01:00
android:gravity="center_vertical"
android:layout_marginLeft="5dp"
android:layout_marginStart="5dp"
android:id="@+id/owner_accounts"
android:layout_width="30dp"
app:srcCompat="@drawable/ic_arrow_drop_down"
android:layout_height="30dp"
tools:ignore="ContentDescription,VectorDrawableCompat" />
</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"
android:textSize="12sp"
android:maxLines="1"
2019-09-06 17:55:14 +02:00
android:layout_height="wrap_content" />
2018-01-10 10:37:55 +01:00
<ImageView
android:layout_gravity="center_vertical|end"
android:src="@drawable/ic_info_outline"
android:id="@+id/header_option_info"
android:layout_width="20dp"
android:layout_height="20dp"
2019-09-06 17:55:14 +02:00
android:contentDescription="@string/information" />
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>