110 lines
4.4 KiB
XML
110 lines
4.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/nav_header_height"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:theme="@style/ThemeOverlay.AppCompat.Dark">
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/background_image"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:minHeight="@dimen/nav_header_height"
|
|
android:scaleType="centerCrop"
|
|
tools:src="@tools:sample/backgrounds/scenic" />
|
|
|
|
<ImageView
|
|
android:id="@+id/header_option_info"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_marginTop="@dimen/activity_vertical_margin"
|
|
android:layout_marginEnd="@dimen/activity_horizontal_margin"
|
|
android:contentDescription="@string/information"
|
|
android:src="@drawable/ic_baseline_more_vert_24"
|
|
app:tint="?iconColor" />
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="match_parent"
|
|
android:layout_height="180dp"
|
|
android:background="@color/transparent"
|
|
android:gravity="bottom"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="@dimen/activity_horizontal_margin"
|
|
android:paddingTop="5dp"
|
|
android:paddingRight="@dimen/activity_horizontal_margin"
|
|
android:paddingBottom="5dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/account_profile_picture"
|
|
android:layout_width="80dp"
|
|
android:layout_height="80dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:contentDescription="@string/profile_picture"
|
|
android:paddingTop="@dimen/nav_header_vertical_spacing"
|
|
android:scaleType="fitCenter"
|
|
tools:src="@tools:sample/avatars" />
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:id="@+id/change_account"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="30dp"
|
|
android:layout_marginTop="10dp"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/account_name"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:ellipsize="end"
|
|
android:paddingTop="@dimen/nav_header_vertical_spacing"
|
|
android:singleLine="true"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
|
|
|
|
<ImageView
|
|
android:id="@+id/owner_accounts"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:contentDescription="@string/open_menu"
|
|
android:gravity="center_vertical"
|
|
android:src="@drawable/ic_baseline_arrow_drop_down_24"
|
|
app:tint="?iconColor" />
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:id="@+id/instance_info_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="30dp"
|
|
android:layout_marginTop="10dp"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/account_acc"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:ellipsize="end"
|
|
android:gravity="center_vertical"
|
|
android:singleLine="true"
|
|
android:textSize="16sp" />
|
|
|
|
<ImageView
|
|
android:id="@+id/instance_info"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical|end"
|
|
android:contentDescription="@string/information"
|
|
android:src="@drawable/ic_baseline_info_24"
|
|
app:tint="?iconColor" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
</RelativeLayout> |