ui: add edge-to-edge on bar-dependent fragments
Add edge-to-edge on the Home, Detail, and Search fragments. This solution is not ideal at all, relying on viewModel state to make sure that the padding is only applied when the playback bar is not present. However, it works. I'll likely replace it with a better layout once I can figure out how similar layouts like Material Files' PersistentBarLyout work.
This commit is contained in:
@@ -51,6 +51,7 @@
|
||||
android:id="@+id/search_recycler"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:clipToPadding="false"
|
||||
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
||||
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"
|
||||
tools:listitem="@layout/item_song" />
|
||||
|
||||
Reference in New Issue
Block a user