Add RecyclerView to LibraryFragment

Add a basic RecyclerView to LibraryFragment that shows every album.
This commit is contained in:
OxygenCobalt
2020-08-24 14:53:13 -06:00
parent 37b071de0d
commit c04a90c3fa
8 changed files with 126 additions and 20 deletions
+28
View File
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<data>
<variable
name="album"
type="org.oxycblt.auxio.music.models.Album" />
</data>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/albumNameText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@{album.title}"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:text="Album Name" />
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>