本文介绍了安卓:我如何使用与CastCompanionLibrary新的Chromecast图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到了新的图标CHROMECAST周围:

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).

我是IM pression下,这些图标来自MediaRouter库,我有一种感觉它并没有被这些新的图标没有。

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..

有没有一种方法,我可以覆盖CastCompanionLibrary的图标?

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

推荐答案

我引用MediaRouter在我的build.gradle一种过时的版本;

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

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

而不是

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

这篇关于安卓:我如何使用与CastCompanionLibrary新的Chromecast图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-01 21:45