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
+6 -5
View File
@@ -17,14 +17,15 @@
app:layout_constraintTop_toTopOf="parent"
app:title="@string/title_library_fragment" />
<ImageView
android:id="@+id/testAlbum"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/library_recycler"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/toolbar" />
app:layout_constraintTop_toBottomOf="@+id/toolbar"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>