92 lines
No EOL
3.7 KiB
XML
92 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: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:background="?attr/colorSurface"
|
|
android:gravity="start"
|
|
app:contentInsetLeft="0dp"
|
|
app:contentInsetStart="0dp"
|
|
app:contentInsetStartWithNavigation="0dp"
|
|
app:navigationIcon="@drawable/ic_keyboard_backspace_black"
|
|
app:title="@string/lyrics"
|
|
app:titleMargin="0dp"
|
|
app:titleMarginStart="0dp"
|
|
app:titleTextAppearance="@style/ToolbarTextAppearanceNormal" />
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="?attr/actionBarSize">
|
|
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scrollbars="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/normalLyrics"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="@dimen/normal_lyrics_padding"
|
|
android:textIsSelectable="true"
|
|
android:textSize="@dimen/lyrics_text_size"
|
|
tools:text="@tools:sample/lorem[100]" />
|
|
</ScrollView>
|
|
|
|
<code.name.monkey.retromusic.lyrics.LrcView
|
|
android:id="@+id/lyricsView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"
|
|
app:lrcLabel="@string/no_lyrics_found"
|
|
app:lrcNormalTextSize="24sp"
|
|
app:lrcPadding="24dp"
|
|
app:lrcTextGravity="left"
|
|
app:lrcTextSize="28sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/noLyricsFound"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center"
|
|
android:text="@string/no_lyrics_found"
|
|
android:textSize="24sp"
|
|
android:visibility="gone" />
|
|
</FrameLayout>
|
|
|
|
<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> |