Android: How can I use the new Chromecast icons with CastCompanionLibrary

我是研究僧i 提交于 2019-12-13 04:39:22

问题


I've seen new ChromeCast icons around:

And I'd really like to use them in my app, as the old icon is completely transparent in the action bar when casting is enabled (the on-state icon is the same color as my action bar).

I'm under the impression that these icons come from the MediaRouter library, and I have a feeling it hasn't been updated with these new icons yet..

Is there a way I can override the icons in the CastCompanionLibrary?


回答1:


I was referencing an out-dated version of MediaRouter in my build.gradle;

compile 'com.android.support:mediarouter-v7:19.0.1'

instead of

compile 'com.android.support:mediarouter-v7:+'


来源:https://stackoverflow.com/questions/23828737/android-how-can-i-use-the-new-chromecast-icons-with-castcompanionlibrary

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