Remove the compact and mini widgets, as there seems to be no real way for both controls and metadata to be packed into them.
41 lines
1.6 KiB
XML
41 lines
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout 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"
|
|
tools:context=".recycler.viewholders.HeaderViewHolder">
|
|
|
|
<data>
|
|
|
|
<variable
|
|
name="header"
|
|
type="org.oxycblt.auxio.music.Header" />
|
|
</data>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/ui_header_dividers">
|
|
|
|
<TextView
|
|
android:id="@+id/header_title"
|
|
style="@style/Widget.TextView.Header"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@{header.name}"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:text="Songs" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/header_button"
|
|
style="@style/Widget.Button.Unbounded.Small"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="@+id/header_title"
|
|
tools:ignore="ContentDescription"
|
|
tools:src="@drawable/ic_clear" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</layout> |