87 lines
No EOL
3.7 KiB
XML
87 lines
No EOL
3.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/colorSurface"
|
|
android:fitsSystemWindows="true"
|
|
android:paddingBottom="@dimen/mini_player_height">
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/appBarLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="0dp"
|
|
app:contentInsetLeft="0dp"
|
|
app:contentInsetStart="0dp"
|
|
app:contentInsetStartWithNavigation="0dp"
|
|
app:fabAlignmentMode="end"
|
|
app:hideOnScroll="true"
|
|
app:titleMargin="0dp"
|
|
app:titleMarginStart="0dp"
|
|
tools:backgroundTint="@color/md_red_400">
|
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="start"
|
|
android:navigationIcon="@drawable/ic_keyboard_arrow_down_black"
|
|
app:contentInsetLeft="0dp"
|
|
app:contentInsetStart="0dp"
|
|
app:contentInsetStartWithNavigation="0dp"
|
|
app:navigationIcon="@drawable/ic_keyboard_backspace_black"
|
|
app:subtitleTextAppearance="@style/TextViewCaption"
|
|
app:titleMargin="0dp"
|
|
app:titleMarginStart="0dp"
|
|
android:background="?attr/colorSurface"
|
|
app:titleTextAppearance="@style/TextViewSubtitle1"
|
|
tools:subtitle="@tools:sample/full_names"
|
|
tools:title="@tools:sample/full_names" />
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
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"
|
|
android:background="?attr/colorSurface"
|
|
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>
|
|
|
|
<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" />
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout> |