home: reimplement speed dial overlay

The stock overlay is not sufficient for our needs, as:
1. It seemingly cannot be set up without missing certain touch areas or
disabling the touch area of the speed dial itself
2. The scrim can't be evenly applied everywhere in the app due to the
nested expore UI.

So, modify the speed dial to work without a scrim and reimplement the
overlay touch behavior manually.
This commit is contained in:
Alexander Capehart
2024-01-02 15:38:23 -07:00
parent afa73a2319
commit 8a75295d99
5 changed files with 52 additions and 12 deletions
@@ -17,6 +17,8 @@
app:navGraph="@navigation/inner"
tools:layout="@layout/fragment_home" />
<View android:id="@+id/main_scrim" android:layout_height="match_parent" android:layout_width="match_parent"/>
<androidx.coordinatorlayout.widget.CoordinatorLayout
android:id="@+id/playback_sheet"
android:layout_width="match_parent"
@@ -72,6 +74,8 @@
</androidx.constraintlayout.widget.ConstraintLayout>
<View android:id="@+id/sheet_scrim" android:layout_height="match_parent" android:layout_width="match_parent"/>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
+1 -8
View File
@@ -156,11 +156,6 @@
app:layout_anchor="@id/home_content">
<com.leinardi.android.speeddial.SpeedDialOverlayLayout
android:id="@+id/home_speed_dial_overlay"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<org.oxycblt.auxio.home.ThemedSpeedDialView
android:id="@+id/home_new_playlist_fab"
android:layout_width="wrap_content"
@@ -171,8 +166,7 @@
android:gravity="bottom|end"
app:sdMainFabAnimationRotateAngle="135"
app:sdMainFabClosedIconColor="@android:color/white"
app:sdMainFabClosedSrc="@drawable/ic_add_24"
app:sdOverlayLayout="@+id/home_speed_dial_overlay" />
app:sdMainFabClosedSrc="@drawable/ic_add_24"/>
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/home_shuffle_fab"
@@ -184,5 +178,4 @@
</org.oxycblt.auxio.home.EdgeFrameLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
@@ -18,6 +18,8 @@
app:navGraph="@navigation/inner"
tools:layout="@layout/fragment_home" />
<View android:id="@+id/main_scrim" android:layout_height="match_parent" android:layout_width="match_parent"/>
<androidx.coordinatorlayout.widget.CoordinatorLayout
android:id="@+id/playback_sheet"
style="@style/Widget.Auxio.DisableDropShadows"
@@ -81,6 +83,8 @@
</LinearLayout>
<View android:id="@+id/sheet_scrim" android:layout_height="match_parent" android:layout_width="match_parent"/>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>