Fix some actionbar menu items are not shown as icons.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
This commit is contained in:
Yahor Berdnikau 2017-02-11 18:02:10 +01:00
parent 5fee79c652
commit e1fa97b98f
No known key found for this signature in database
GPG Key ID: 07509DAF2D048E85
3 changed files with 26 additions and 17 deletions

View File

@ -1,10 +1,13 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<menu xmlns:a="http://schemas.android.com/apk/res/android" > <menu
xmlns:a="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
>
<item <item
a:id="@+id/main_shuffle" a:id="@+id/main_shuffle"
a:icon="?attr/media_shuffle" a:icon="?attr/media_shuffle"
a:showAsAction="ifRoom|withText" app:showAsAction="ifRoom|withText"
a:title="@string/main.shuffle"/> a:title="@string/main.shuffle"/>
</menu> </menu>

View File

@ -1,56 +1,59 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<menu xmlns:a="http://schemas.android.com/apk/res/android" > <menu
xmlns:a="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
>
<item <item
a:id="@+id/menu_item_toggle_list" a:id="@+id/menu_item_toggle_list"
a:icon="?attr/media_toggle" a:icon="?attr/media_toggle"
a:showAsAction="always" app:showAsAction="always"
a:title="@string/download.toggle_playlist"/> a:title="@string/download.toggle_playlist"/>
<item <item
a:id="@+id/menu_item_star" a:id="@+id/menu_item_star"
a:icon="?attr/star_hollow" a:icon="?attr/star_hollow"
a:showAsAction="ifRoom|withText" app:showAsAction="ifRoom|withText"
a:title="@string/download.menu_star"/> a:title="@string/download.menu_star"/>
<item <item
a:id="@+id/menu_item_share" a:id="@+id/menu_item_share"
a:icon="?attr/share" a:icon="?attr/share"
a:showAsAction="ifRoom|withText" app:showAsAction="ifRoom|withText"
a:title="@string/download.share_playlist"/> a:title="@string/download.share_playlist"/>
<item <item
a:id="@+id/menu_item_save_playlist" a:id="@+id/menu_item_save_playlist"
a:icon="?attr/save" a:icon="?attr/save"
a:showAsAction="ifRoom|withText" app:showAsAction="ifRoom|withText"
a:title="@string/download.menu_save"/> a:title="@string/download.menu_save"/>
<item <item
a:id="@+id/menu_item_clear_playlist" a:id="@+id/menu_item_clear_playlist"
a:icon="?attr/remove_all" a:icon="?attr/remove_all"
a:showAsAction="ifRoom|withText" app:showAsAction="ifRoom|withText"
a:title="@string/download.menu_clear_playlist"/> a:title="@string/download.menu_clear_playlist"/>
<item <item
a:id="@+id/menu_item_bookmark_set" a:id="@+id/menu_item_bookmark_set"
a:icon="?attr/bookmark" a:icon="?attr/bookmark"
a:showAsAction="ifRoom|withText" app:showAsAction="ifRoom|withText"
a:title="@string/download.bookmark_set"/> a:title="@string/download.bookmark_set"/>
<item <item
a:id="@+id/menu_item_bookmark_delete" a:id="@+id/menu_item_bookmark_delete"
a:icon="?attr/bookmark" a:icon="?attr/bookmark"
a:showAsAction="ifRoom|withText" app:showAsAction="ifRoom|withText"
a:title="@string/download.bookmark_delete"/> a:title="@string/download.bookmark_delete"/>
<item <item
a:id="@+id/menu_item_equalizer" a:id="@+id/menu_item_equalizer"
a:showAsAction="never" app:showAsAction="never"
a:title="@string/download.menu_equalizer"/> a:title="@string/download.menu_equalizer"/>
<item <item
a:id="@+id/menu_item_visualizer" a:id="@+id/menu_item_visualizer"
a:showAsAction="never" app:showAsAction="never"
a:title="@string/download.menu_visualizer"/> a:title="@string/download.menu_visualizer"/>
<item <item
a:id="@+id/menu_item_jukebox" a:id="@+id/menu_item_jukebox"
a:showAsAction="never" app:showAsAction="never"
a:title="@string/download.menu_jukebox_on"/> a:title="@string/download.menu_jukebox_on"/>
<item <item
a:id="@+id/menu_item_screen_on_off" a:id="@+id/menu_item_screen_on_off"
a:showAsAction="never" app:showAsAction="never"
a:title="@string/download.menu_screen_on"/> a:title="@string/download.menu_screen_on"/>
</menu> </menu>

View File

@ -1,16 +1,19 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<menu xmlns:a="http://schemas.android.com/apk/res/android" > <menu
xmlns:a="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
>
<item <item
a:id="@+id/menu_item_share" a:id="@+id/menu_item_share"
a:showAsAction="ifRoom|withText" app:showAsAction="ifRoom|withText"
a:title="@string/menu.share" a:title="@string/menu.share"
a:icon="?attr/share"/> a:icon="?attr/share"/>
<item <item
a:id="@+id/select_album_play_all" a:id="@+id/select_album_play_all"
a:icon="?attr/media_play" a:icon="?attr/media_play"
a:showAsAction="ifRoom|withText" app:showAsAction="ifRoom|withText"
a:title="@string/select_album.play_all"/> a:title="@string/select_album.play_all"/>
</menu> </menu>