Converted Lyrics activity to fragment

This commit is contained in:
Prathamesh More 2021-09-27 20:26:22 +05:30
parent 73f246b60e
commit 4d6f75031a
5 changed files with 113 additions and 125 deletions

View file

@ -7,11 +7,10 @@
android:layout_height="match_parent"
android:fitsSystemWindows="true">
<com.google.android.material.bottomappbar.BottomAppBar
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/appBarLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:padding="0dp"
app:contentInsetLeft="0dp"
app:contentInsetStart="0dp"
@ -39,13 +38,13 @@
tools:subtitle="@tools:sample/full_names"
tools:title="@tools:sample/full_names" />
</com.google.android.material.bottomappbar.BottomAppBar>
</com.google.android.material.appbar.AppBarLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="?attr/actionBarSize">
android:layout_marginTop="?attr/actionBarSize">
<androidx.viewpager2.widget.ViewPager2
android:id="@+id/lyricsPager"

View file

@ -129,4 +129,8 @@
<fragment
android:id="@+id/playing_queue_fragment"
android:name="code.name.monkey.retromusic.fragments.queue.PlayingQueueFragment" />
<fragment
android:id="@+id/lyrics_fragment"
android:name="code.name.monkey.retromusic.fragments.LyricsFragment" />
</navigation>