Update transitions in the home fragment to X-axis. I noticed a visual issue in the detail transition in the existing version stemming from how the main fragment's drawing is clipped by the bottom sheet, resulting in a less-than-ideal Z-axis transition. While I wanted to fix this by attempting to switch to inset based bottom sheet management, I still need to wait for more changes in order to successfully pull that off, and hence I'll be reverting it soon. Moving these transitions to X-axis prevents this visual issue while still being roughly semantically similar.
34 lines
1.4 KiB
XML
34 lines
1.4 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"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:transitionGroup="true"
|
|
android:background="?attr/colorSurface"
|
|
android:orientation="vertical">
|
|
|
|
<org.oxycblt.auxio.ui.AuxioAppBarLayout
|
|
android:id="@+id/settings_appbar"
|
|
style="@style/Widget.Auxio.AppBarLayout"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
app:liftOnScroll="true">
|
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
|
android:id="@+id/settings_toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:navigationIcon="@drawable/ic_back_24"
|
|
app:title="@string/set_title" />
|
|
|
|
</org.oxycblt.auxio.ui.AuxioAppBarLayout>
|
|
|
|
<androidx.fragment.app.FragmentContainerView
|
|
android:id="@+id/settings_list_fragment"
|
|
android:name="org.oxycblt.auxio.settings.SettingsListFragment"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior" />
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|