Not Getting Thumb with Genres - Universal Music Player

邮差的信 提交于 2019-11-29 13:59:06
  1. The icon bitmap may not have been set. It's best to use the AlbumartCache to fetch the icon and then set it on the imageView. The url to be passed to AlbumArtCache.getInstance().fetch(url,..) is description.getIconUri().toString()
  2. The reason you may not be seeing it in uAmp is because of the tint being applied to it. You can remove the tint from media_list_item.xml to try out the changes.

Aside: This is indeed by design and the icon is only shown at the bottom when a user selects the item to be played.

This is by design. To keep the navigation cleaner, we decided to not show the MediaItem icon on the local browsing UI. Other browsing UI's may show it, like Android Auto and Android Wear.

I think you should check it in issues of android-UniversalMusicPlayer. Take a look at comment given by mangini here.

If you want to change uAmp to show the MediaDescription.getIconUri, set the holder.mImageView at this.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!