需要帮助更改操作栏中的 chromecst 图像

Need help changing the chromecst image in the actionbar

嗨,有人知道如何在 google cast 连接时更改图标吗?我希望我的图标在连接到 chromecast 设备时显示为蓝色,但我的图标显示为白色。也是操作栏中的那个。

你有几个选择。一种是替换媒体路由器库在您的项目中使用的图标。这使您能够更改连接和断开连接这两种状态的颜色。如果你想要更多,那么你可以关注这个article where he goes into details on how to change the theme used there in the library by sub-classing MediaRouteButton from the library. If the first approach is all you need, then do that since it amounts to just replacing a few images. To find out what those images are, look at media router support library;在 res/drawables/ 中,您应该找到 XML 指向所使用的各种图像的资源,然后在您自己的应用程序中使用这些图像的您自己的版本(保持名称相同)。