PlayerAndroid/app/src/main/res/layout/fragment_lyrics.xml

85 lines
3.6 KiB
XML
Raw Normal View History

2018-07-27 13:07:33 +00:00
<?xml version="1.0" encoding="utf-8"?>
2019-04-05 05:49:40 +00:00
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
2018-11-05 15:52:22 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
2019-10-09 12:31:31 +00:00
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
2021-10-30 11:10:07 +00:00
android:fitsSystemWindows="true"
android:paddingBottom="@dimen/mini_player_height">
2019-04-05 05:49:40 +00:00
2021-09-27 14:56:22 +00:00
<com.google.android.material.appbar.AppBarLayout
2019-04-05 05:49:40 +00:00
android:id="@+id/appBarLayout"
2020-08-11 22:20:22 +00:00
android:layout_width="match_parent"
2019-12-01 15:27:01 +00:00
android:layout_height="wrap_content"
2020-08-11 22:20:22 +00:00
android:padding="0dp"
app:contentInsetLeft="0dp"
app:contentInsetStart="0dp"
app:contentInsetStartWithNavigation="0dp"
app:fabAlignmentMode="end"
2020-08-11 22:20:22 +00:00
app:hideOnScroll="true"
app:titleMargin="0dp"
app:titleMarginStart="0dp"
tools:backgroundTint="@color/md_red_400">
2018-12-25 14:58:47 +00:00
2019-09-28 17:52:49 +00:00
<com.google.android.material.appbar.MaterialToolbar
2019-04-05 05:49:40 +00:00
android:id="@+id/toolbar"
2018-12-25 14:58:47 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="start"
2020-07-19 21:00:30 +00:00
android:navigationIcon="@drawable/ic_keyboard_arrow_down_black"
2019-04-05 05:49:40 +00:00
app:contentInsetLeft="0dp"
app:contentInsetStart="0dp"
app:contentInsetStartWithNavigation="0dp"
2020-07-19 21:00:30 +00:00
app:navigationIcon="@drawable/ic_keyboard_backspace_black"
app:subtitleTextAppearance="@style/TextViewCaption"
2019-04-05 05:49:40 +00:00
app:titleMargin="0dp"
app:titleMarginStart="0dp"
app:titleTextAppearance="@style/TextViewSubtitle1"
2019-10-09 12:31:31 +00:00
tools:subtitle="@tools:sample/full_names"
tools:title="@tools:sample/full_names" />
2019-04-05 05:49:40 +00:00
2021-09-27 14:56:22 +00:00
</com.google.android.material.appbar.AppBarLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
2021-09-27 14:56:22 +00:00
android:layout_marginTop="?attr/actionBarSize">
<androidx.viewpager2.widget.ViewPager2
android:id="@+id/lyricsPager"
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/tabLyrics">
</androidx.viewpager2.widget.ViewPager2>
<com.google.android.material.tabs.TabLayout
android:id="@+id/tabLyrics"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-09-16 12:59:31 +00:00
android:elevation="@dimen/toolbar_elevation"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:tabIndicator="@drawable/tab_lyrics_indicator"
app:tabIndicatorAnimationMode="elastic"
app:tabIndicatorFullWidth="false"
app:tabIndicatorHeight="5dp" />
</androidx.constraintlayout.widget.ConstraintLayout>
2021-10-30 11:10:07 +00:00
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/edit_button"
style="@style/Widget.Material3.FloatingActionButton.Primary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="16dp"
android:clickable="true"
android:focusable="true"
app:srcCompat="@drawable/ic_edit" />
2019-04-05 05:49:40 +00:00
</androidx.coordinatorlayout.widget.CoordinatorLayout>