Add ViewPager

Add a ViewPager, currently it has no purpose but it will eventually.
This commit is contained in:
OxygenCobalt
2020-08-26 16:17:04 -06:00
parent d9dda08731
commit c109c3f359
11 changed files with 75 additions and 13 deletions
+2 -1
View File
@@ -25,7 +25,8 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/toolbar"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem="@layout/album_item" />
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>
+14
View File
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.viewpager2.widget.ViewPager2
android:id="@+id/viewPager"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</FrameLayout>
</layout>