【发布时间】:2017-04-03 23:09:49
【问题描述】:
我正在尝试自定义 castBackground 和 castProgressBarColor MiniControllerFragment 属性,如官方文档中所述: https://developers.google.com/cast/docs/android_sender_advanced
我的 Activity 使用以下样式:
<style name="AppTheme.NoActionBarNoTitle" parent="Theme.AppCompat.Light.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="castIntroOverlayStyle">@style/CustomCastIntroOverlay</item>
<item name="castMiniControllerStyle">@style/CustomCastMiniController</item>
</style>
这是 CustomCastMiniController 样式:
<style name="CustomCastMiniController" parent="CastMiniController">
<item name="castShowImageThumbnail">true</item>
<item name="castTitleTextAppearance">@style/TextAppearance.AppCompat.Subhead</item>
<item name="castSubtitleTextAppearance">@style/TextAppearance.AppCompat.Caption</item>
<item name="castBackground">#FFFFFF</item>
<item name="castProgressBarColor">#FFFFFF</item>
</style>
我无法构建,因为这些错误:
Error:(2073, 21) No resource found that matches the given name: attr 'castBackground'.
Error:(2074, 21) No resource found that matches the given name: attr 'castProgressBarColor'.
如果我在我的 CustomCastMiniController 样式应用程序中删除这两个属性成功启动。
【问题讨论】:
标签: android casting chromecast google-cast