list: add type-specific menu impls

Add menus for each fundamental music datatype. Each will display
information about the data contained.
This commit is contained in:
Alexander Capehart
2023-07-03 15:18:04 -06:00
parent c1158b1a07
commit db2e9e12f0
9 changed files with 361 additions and 27 deletions
+45 -9
View File
@@ -1,24 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<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"
style="@style/Widget.Auxio.RecyclerView.Linear"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<org.oxycblt.auxio.image.CoverView
android:id="@+id/menu_cover"
style="@style/Widget.Auxio.Image.MidLarge"
android:layout_margin="@dimen/spacing_medium"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:layout_width="match_parent"
android:id="@+id/menu_type"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="@dimen/spacing_medium"
android:paddingHorizontal="@dimen/spacing_medium"
android:textAppearance="@style/TextAppearance.Auxio.HeadlineSmall"
android:text="TODO: Put info here" />
android:textAppearance="@style/TextAppearance.Auxio.LabelLarge"
android:textColor="?attr/colorSecondary"
android:layout_marginStart="@dimen/spacing_medium"
app:layout_constraintBottom_toTopOf="@+id/menu_name"
app:layout_constraintStart_toEndOf="@+id/menu_cover"
app:layout_constraintTop_toTopOf="@+id/menu_cover"
app:layout_constraintVertical_chainStyle="packed"
tools:text="Type" />
<TextView
android:id="@+id/menu_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="@style/TextAppearance.Auxio.TitleLarge"
android:textColor="?android:attr/textColorPrimary"
app:layout_constraintBottom_toTopOf="@+id/menu_info"
app:layout_constraintStart_toStartOf="@+id/menu_type"
app:layout_constraintTop_toBottomOf="@+id/menu_type"
tools:text="Name" />
<TextView
android:id="@+id/menu_info"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="@style/TextAppearance.Auxio.TitleMedium"
android:textColor="?android:attr/textColorSecondary"
app:layout_constraintBottom_toBottomOf="@+id/menu_cover"
app:layout_constraintStart_toStartOf="@+id/menu_name"
app:layout_constraintTop_toBottomOf="@+id/menu_name"
tools:text="Info A" />
<org.oxycblt.auxio.list.recycler.DialogRecyclerView
android:id="@+id/menu_recycler"
android:id="@+id/menu_option_recycler"
style="@style/Widget.Auxio.RecyclerView.Linear"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="0dp"
app:layout_constraintTop_toBottomOf="@+id/menu_cover"
tools:listitem="@layout/item_menu_option" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>