list: add ability to play/shuffle songs in menu
Add play and shuffle options for all song menus. These will override the shuffle state, unlike other song play interactions. This required a good bit of refactoring to menu, some of which might be ported to other commands in future changes.
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- <item-->
|
||||
<!-- android:id="@+id/action_play"-->
|
||||
<!-- android:title="@string/lbl_play"-->
|
||||
<!-- android:icon="@drawable/ic_play_24" />-->
|
||||
<!-- <item-->
|
||||
<!-- android:id="@+id/action_shuffle"-->
|
||||
<!-- android:title="@string/lbl_shuffle"-->
|
||||
<!-- android:icon="@drawable/ic_shuffle_off_24"/>-->
|
||||
<item
|
||||
android:id="@+id/action_play"
|
||||
android:title="@string/lbl_play"
|
||||
android:icon="@drawable/ic_play_24" />
|
||||
<item
|
||||
android:id="@+id/action_shuffle"
|
||||
android:title="@string/lbl_shuffle"
|
||||
android:icon="@drawable/ic_shuffle_off_24"/>
|
||||
<item
|
||||
android:id="@+id/action_play_next"
|
||||
android:title="@string/lbl_play_next"
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- <item-->
|
||||
<!-- android:id="@+id/action_play"-->
|
||||
<!-- android:title="@string/lbl_play"-->
|
||||
<!-- android:icon="@drawable/ic_play_24" />-->
|
||||
<!-- <item-->
|
||||
<!-- android:id="@+id/action_shuffle"-->
|
||||
<!-- android:title="@string/lbl_shuffle"-->
|
||||
<!-- android:icon="@drawable/ic_shuffle_off_24"/>-->
|
||||
<item
|
||||
android:id="@+id/action_play"
|
||||
android:title="@string/lbl_play"
|
||||
android:icon="@drawable/ic_play_24" />
|
||||
<item
|
||||
android:id="@+id/action_shuffle"
|
||||
android:title="@string/lbl_shuffle"
|
||||
android:icon="@drawable/ic_shuffle_off_24"/>
|
||||
<item
|
||||
android:id="@+id/action_play_next"
|
||||
android:title="@string/lbl_play_next"
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- <item-->
|
||||
<!-- android:id="@+id/action_play"-->
|
||||
<!-- android:title="@string/lbl_play"-->
|
||||
<!-- android:icon="@drawable/ic_play_24" />-->
|
||||
<!-- <item-->
|
||||
<!-- android:id="@+id/action_shuffle"-->
|
||||
<!-- android:title="@string/lbl_shuffle"-->
|
||||
<!-- android:icon="@drawable/ic_shuffle_off_24" />-->
|
||||
<item
|
||||
android:id="@+id/action_play"
|
||||
android:title="@string/lbl_play"
|
||||
android:icon="@drawable/ic_play_24" />
|
||||
<item
|
||||
android:id="@+id/action_shuffle"
|
||||
android:title="@string/lbl_shuffle"
|
||||
android:icon="@drawable/ic_shuffle_off_24"/>
|
||||
<item
|
||||
android:id="@+id/action_play_next"
|
||||
android:title="@string/lbl_play_next"
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item
|
||||
android:id="@+id/action_play"
|
||||
android:title="@string/lbl_play"
|
||||
android:icon="@drawable/ic_play_24" />
|
||||
<item
|
||||
android:id="@+id/action_shuffle"
|
||||
android:title="@string/lbl_shuffle"
|
||||
android:icon="@drawable/ic_shuffle_off_24"/>
|
||||
<item
|
||||
android:id="@+id/action_play_next"
|
||||
android:title="@string/lbl_play_next"
|
||||
|
||||
Reference in New Issue
Block a user