
Remove the elevation component from all toolbars and the bottom bar. Material3 states that top and bottom app bars should not cast a drop shadow. Auxio ignored this and used one anyway. This largely stemmed from incorrect use of the AppBarLayout styles, which were mostly just incorrect M2 styles with a new background plastered over. Fix this by creating a new style that inherits the proper M3 styles and then using that on all AppBarLayout instances in the app.
40 lines
No EOL
1.7 KiB
XML
40 lines
No EOL
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout 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"
|
|
tools:context=".playback.queue.QueueFragment">
|
|
|
|
<org.oxycblt.auxio.ui.EdgeCoordinatorLayout
|
|
android:id="@+id/queue_coordinator"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/colorSurface"
|
|
android:orientation="vertical">
|
|
|
|
<org.oxycblt.auxio.ui.EdgeAppBarLayout
|
|
android:id="@+id/queue_appbar"
|
|
style="@style/Widget.Auxio.AppBarLayout"
|
|
app:liftOnScroll="true"
|
|
app:liftOnScrollTargetViewId="@id/queue_recycler">
|
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
|
android:id="@+id/queue_toolbar"
|
|
style="@style/Widget.Auxio.Toolbar.Icon.Down"
|
|
android:elevation="0dp"
|
|
app:navigationIcon="@drawable/ic_down"
|
|
app:title="@string/lbl_queue" />
|
|
|
|
</org.oxycblt.auxio.ui.EdgeAppBarLayout>
|
|
|
|
<org.oxycblt.auxio.ui.EdgeRecyclerView
|
|
android:id="@+id/queue_recycler"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clipToPadding="false"
|
|
android:overScrollMode="ifContentScrolls"
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"
|
|
tools:listitem="@layout/item_queue_song" />
|
|
|
|
</org.oxycblt.auxio.ui.EdgeCoordinatorLayout>
|
|
</layout> |