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

121 lines
5.1 KiB
XML
Raw Normal View History

2017-05-05 16:36:04 +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-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.
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-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.
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-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"
android:layout_height="@dimen/nav_header_height"
2018-01-10 10:37:55 +01:00
>
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" />
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">
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">
<ImageView
android:id="@+id/profilePicture"
android:layout_width="60dp"
android:layout_height="60dp"
2018-12-10 14:58:45 +01: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"
tools:ignore="UselessLeaf" >
</LinearLayout>
<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"
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>
<LinearLayout
android:layout_marginTop="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
tools:ignore="UseCompoundDrawables">
<TextView
android:gravity="center_vertical"
android:id="@+id/displayedName"
android:textColor="?attr/textColor"
2018-01-10 10:37:55 +01:00
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:textSize="18sp"
android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
<android.support.v7.widget.AppCompatImageView
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>
<TextView
android:id="@+id/username"
android:textColor="?attr/textColor"
2018-01-10 10:37:55 +01:00
android:layout_width="wrap_content"
android:textSize="12sp"
android:maxLines="1"
2017-08-28 08:57:29 +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"
2018-12-10 14:58:45 +01: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>