playback: add shuffle shortcut
Add a shortcut to shuffle all songs. This is likely the only static shortcut Auxio will have. Top tracks and recently added are completely useless for me, so I will never add them. I may add more dynamic shortcuts for recently played items, however. Note that we use a basic black shuffle icon here. I will not add icon customization to these shortcuts.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<?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="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="@android:color/black"
|
||||
android:pathData="M10.59,9.17L5.41,4 4,5.41l5.17,5.17 1.42,-1.41zM14.5,4l2.04,2.04L4,18.59 5.41,20 17.96,7.46 20,9.5L20,4h-5.5zM14.83,13.41l-1.41,1.41 3.13,3.13L14.5,20L20,20v-5.5l-2.04,2.04 -3.13,-3.13z" />
|
||||
</vector>
|
||||
@@ -8,4 +8,4 @@
|
||||
android:layout_height="match_parent"
|
||||
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
||||
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"
|
||||
tools:listitem="@layout/item_artist" />
|
||||
tools:listitem="@layout/item_parent" />
|
||||
|
||||
@@ -17,11 +17,7 @@
|
||||
app:popExitAnim="@anim/nav_slide_pop_exit_anim" />
|
||||
<action
|
||||
android:id="@+id/action_show_settings"
|
||||
app:destination="@id/settings_fragment"
|
||||
app:enterAnim="@anim/nav_default_enter_anim"
|
||||
app:exitAnim="@anim/nav_default_exit_anim"
|
||||
app:popEnterAnim="@anim/nav_default_pop_enter_anim"
|
||||
app:popExitAnim="@anim/nav_default_pop_exit_anim" />
|
||||
app:destination="@id/settings_fragment" />
|
||||
<action
|
||||
android:id="@+id/action_show_about"
|
||||
app:destination="@id/about_fragment"
|
||||
|
||||
@@ -59,6 +59,11 @@
|
||||
|
||||
<string name="lbl_state_saved">State saved</string>
|
||||
|
||||
<!-- Limit to 10 characters -->
|
||||
<string name="lbl_shuffle_shortcut_short">Shuffle</string>
|
||||
<!-- Limit to 25 characters -->
|
||||
<string name="lbl_shuffle_shortcut_long">Shuffle All</string>
|
||||
|
||||
<!-- Actual string: Ok -->
|
||||
<string name="lbl_ok">@android:string/ok</string>
|
||||
<!-- Actual string: Cancel -->
|
||||
|
||||
Reference in New Issue
Block a user