2018-06-13 20:35:20 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-10-09 18:24:02 +00:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?colorPrimary"
|
|
|
|
android:nextFocusDown="@+id/drawer_header_action_button">
|
2018-06-13 20:35:20 +00:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="match_parent"
|
2020-04-02 14:05:19 +00:00
|
|
|
android:layout_height="0dp"
|
2018-08-28 17:25:56 +00:00
|
|
|
android:scaleType="centerCrop"
|
2020-03-22 19:26:53 +00:00
|
|
|
android:src="@drawable/background_header"
|
2020-04-02 14:05:19 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2020-03-22 19:26:53 +00:00
|
|
|
tools:ignore="ContentDescription" />
|
2018-06-13 20:35:20 +00:00
|
|
|
|
2020-03-22 19:26:53 +00:00
|
|
|
<LinearLayout
|
2018-06-13 20:35:20 +00:00
|
|
|
android:layout_width="match_parent"
|
2020-04-02 14:05:19 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="@dimen/drawer_header_padding_top"
|
|
|
|
android:fitsSystemWindows="true"
|
|
|
|
android:gravity="bottom"
|
|
|
|
android:minHeight="@dimen/drawer_header_content_min_height"
|
2020-03-22 19:26:53 +00:00
|
|
|
android:orientation="vertical"
|
2020-04-02 14:05:19 +00:00
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
2018-06-13 20:35:20 +00:00
|
|
|
|
2020-03-22 19:26:53 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="72dp"
|
|
|
|
android:layout_marginLeft="16dp"
|
|
|
|
android:layout_marginRight="16dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
tools:ignore="UseCompoundDrawables">
|
2018-06-13 20:35:20 +00:00
|
|
|
|
2020-03-22 19:26:53 +00:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/drawer_header_newpipe_icon"
|
|
|
|
android:layout_width="@dimen/drawer_header_newpipe_icon_size"
|
|
|
|
android:layout_height="@dimen/drawer_header_newpipe_icon_size"
|
|
|
|
android:layout_marginEnd="@dimen/drawer_header_newpipe_icon_title_space"
|
2020-03-25 15:23:47 +00:00
|
|
|
app:srcCompat="@drawable/splash_foreground"
|
2020-03-22 19:26:53 +00:00
|
|
|
tools:ignore="ContentDescription" />
|
2018-06-13 20:35:20 +00:00
|
|
|
|
2020-03-22 19:26:53 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/drawer_header_newpipe_title"
|
2020-04-10 13:31:28 +00:00
|
|
|
android:layout_width="@dimen/drawer_header_newpipe_title_default_width"
|
2020-03-22 19:26:53 +00:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_marginEnd="@dimen/drawer_header_newpipe_icon_title_space"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:gravity="start|center_vertical"
|
|
|
|
android:hyphenationFrequency="full"
|
2020-04-10 13:31:28 +00:00
|
|
|
android:maxLines="1"
|
2020-03-22 19:26:53 +00:00
|
|
|
android:text="@string/app_name"
|
|
|
|
android:textColor="@color/drawer_header_font_color"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:autoSizeMaxTextSize="@dimen/drawer_header_newpipe_title_max_text_size"
|
|
|
|
app:autoSizeMinTextSize="@dimen/drawer_header_newpipe_title_min_text_size"
|
2020-04-02 14:05:19 +00:00
|
|
|
app:autoSizeTextType="uniform"
|
2020-04-10 13:31:28 +00:00
|
|
|
tools:ignore="UnusedAttribute"
|
|
|
|
tools:text="NewPipe" />
|
2020-03-22 19:26:53 +00:00
|
|
|
</LinearLayout>
|
2018-06-13 20:35:20 +00:00
|
|
|
|
2020-03-22 19:26:53 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:background="@drawable/drawer_header_bottom_background"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingLeft="6dp"
|
|
|
|
android:paddingRight="6dp">
|
2018-06-13 20:35:20 +00:00
|
|
|
|
2020-03-25 12:40:15 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
2020-04-02 14:05:19 +00:00
|
|
|
android:layout_height="32dp"
|
2020-03-25 12:40:15 +00:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="horizontal">
|
2020-03-22 19:26:53 +00:00
|
|
|
|
2020-03-25 12:40:15 +00:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/drawer_header_service_icon"
|
|
|
|
android:layout_width="@dimen/drawer_header_service_icon_size"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="6dp"
|
|
|
|
android:layout_marginRight="6dp"
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
app:tint="@color/drawer_header_font_color"
|
|
|
|
tools:ignore="ContentDescription"
|
2020-03-25 15:23:47 +00:00
|
|
|
tools:srcCompat="@drawable/place_holder_youtube" />
|
2020-03-25 12:40:15 +00:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/drawer_header_service_view"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="@color/drawer_header_font_color"
|
|
|
|
android:textSize="@dimen/drawer_header_service_title_text_size"
|
|
|
|
tools:text="YouTube" />
|
|
|
|
</LinearLayout>
|
2020-03-22 19:26:53 +00:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/drawer_arrow"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:layout_marginStart="4dp"
|
2021-03-27 14:45:49 +00:00
|
|
|
app:srcCompat="@drawable/ic_arrow_drop_down"
|
2020-03-22 19:26:53 +00:00
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
2018-06-14 01:29:49 +00:00
|
|
|
|
2020-03-22 19:26:53 +00:00
|
|
|
<Button
|
|
|
|
android:id="@+id/drawer_header_action_button"
|
|
|
|
android:layout_width="match_parent"
|
2020-04-02 14:05:19 +00:00
|
|
|
android:layout_height="0dp"
|
2020-03-22 19:26:53 +00:00
|
|
|
android:background="?selectableItemBackground"
|
2020-04-02 14:05:19 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2020-10-09 18:24:02 +00:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|