home: make playlist add a speed dial
Add a speed dial menu that allows you to create a new playlist or import a playlist from elsewhere.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="960"
|
||||
android:viewportHeight="960"
|
||||
android:tint="?attr/colorControlNormal">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M240,880Q207,880 183.5,856.5Q160,833 160,800L160,160Q160,127 183.5,103.5Q207,80 240,80L560,80L800,320L800,800Q800,833 776.5,856.5Q753,880 720,880L240,880ZM520,360L520,160L240,160Q240,160 240,160Q240,160 240,160L240,800Q240,800 240,800Q240,800 240,800L720,800Q720,800 720,800Q720,800 720,800L720,360L520,360ZM240,160L240,160L240,360L240,360L240,160L240,360L240,360L240,800Q240,800 240,800Q240,800 240,800L240,800Q240,800 240,800Q240,800 240,800L240,160Q240,160 240,160Q240,160 240,160Z"/>
|
||||
</vector>
|
||||
@@ -8,6 +8,7 @@
|
||||
android:background="?attr/colorSurface"
|
||||
android:transitionGroup="true">
|
||||
|
||||
|
||||
<org.oxycblt.auxio.ui.CoordinatorAppBarLayout
|
||||
android:id="@+id/home_appbar"
|
||||
style="@style/Widget.Auxio.AppBarLayout">
|
||||
@@ -147,18 +148,43 @@
|
||||
</FrameLayout>
|
||||
|
||||
<org.oxycblt.auxio.home.EdgeFrameLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
app:layout_anchor="@id/home_content"
|
||||
app:layout_anchorGravity="bottom|end">
|
||||
android:layout_gravity="bottom|end"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<org.oxycblt.auxio.home.FlipFloatingActionButton
|
||||
android:id="@+id/home_fab"
|
||||
style="@style/Widget.Auxio.FloatingActionButton.Adaptive"
|
||||
|
||||
<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"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/spacing_medium" />
|
||||
app:sdMainFabAnimationRotateAngle="135"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:gravity="bottom|end"
|
||||
app:sdMainFabClosedSrc="@drawable/ic_add_24"
|
||||
android:layout_gravity="bottom|end"
|
||||
app:sdMainFabClosedIconColor="@android:color/white"
|
||||
app:sdOverlayLayout="@+id/home_speed_dial_overlay" />
|
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
android:id="@+id/home_shuffle_fab"
|
||||
android:layout_margin="@dimen/spacing_medium"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|end"
|
||||
android:src="@drawable/ic_shuffle_off_24" />
|
||||
|
||||
</org.oxycblt.auxio.home.EdgeFrameLayout>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item
|
||||
android:id="@+id/action_import_playlist"
|
||||
android:icon="@drawable/ic_import_24"
|
||||
android:title="@string/lbl_import_playlist" />
|
||||
<item
|
||||
android:id="@+id/action_new_playlist"
|
||||
android:icon="@drawable/ic_playlist_24"
|
||||
android:title="@string/lbl_empty_playlist" />
|
||||
</menu>
|
||||
@@ -88,6 +88,8 @@
|
||||
<string name="lbl_playlist">Playlist</string>
|
||||
<string name="lbl_playlists">Playlists</string>
|
||||
<string name="lbl_new_playlist">New playlist</string>
|
||||
<string name="lbl_empty_playlist">Empty playlist</string>
|
||||
<string name="lbl_import_playlist">Imported playlist</string>
|
||||
<string name="lbl_rename">Rename</string>
|
||||
<string name="lbl_rename_playlist">Rename playlist</string>
|
||||
<string name="lbl_delete">Delete</string>
|
||||
|
||||
Reference in New Issue
Block a user