
Finally add tab customization. This implementation is a bit ugly, but I had to futureproof it for playlists and I'm planning to clean up a lot of the duplicate code across the app. This addition notably allows a default tab to be set, which is something that was widely requested in #12. This UI rework finally allows it to be added.
31 lines
1.2 KiB
XML
31 lines
1.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@android:id/background"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/colorSurface"
|
|
android:theme="@style/Theme.Widget"
|
|
tools:ignore="Overdraw">
|
|
|
|
<android.widget.ImageView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:alpha="0.3"
|
|
android:contentDescription="@string/desc_no_cover"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/ic_song" />
|
|
|
|
<android.widget.TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:fontFamily="@font/inter"
|
|
android:gravity="center"
|
|
android:padding="@dimen/spacing_medium"
|
|
android:text="@string/def_playback"
|
|
android:textAppearance="@style/TextAppearance.MaterialComponents.Headline6"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textStyle="bold" />
|
|
|
|
</FrameLayout>
|