home: make fab adaptive

Use a large FAB on tablet layouts, as in general it's okay to make
those elements bigger on large touchscreens.
This commit is contained in:
OxygenCobalt
2021-12-18 11:15:28 -07:00
parent 2d3fc47d7c
commit b92b08f8ab
9 changed files with 51 additions and 6 deletions
+2 -1
View File
@@ -49,10 +49,11 @@
app:layout_anchor="@id/home_pager"
app:layout_anchorGravity="bottom|end">
<com.google.android.material.floatingactionbutton.FloatingActionButton
<org.oxycblt.auxio.home.AdaptiveFloatingActionButton
android:id="@+id/home_fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/Widget.Material3.FloatingActionButton.Primary"
android:layout_margin="@dimen/spacing_medium"
android:contentDescription="@string/desc_shuffle_all"
android:src="@drawable/ic_shuffle"
@@ -8,7 +8,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
android:paddingBottom="88dp"
android:paddingBottom="@dimen/recycler_fab_space_normal"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"
tools:listitem="@layout/item_artist" />