android - 在 "Currently playing"转换屏幕中设置文本颜色样式

标签 android chromecast google-cast google-cast-sdk

我找不到将我的应用程序样式保持在下方并在“当前播放”弹出屏幕中显示文本的方法。如下图所示,它是白底白字。


似乎 textColor 用于文本,而 colorPrimary 用于背景。我有两个白色,因为它用于应用程序的其他部分。有没有办法只给这个对话框一个主题?

<style name="Theme.MyTheme" parent="Theme.AppCompat">
    <!-- colorPrimary is used for the default action bar background -->
    <item name="colorPrimary">@color/white</item>

    <!-- colorPrimaryDark is used for the status bar background -->
    <item name="colorPrimaryDark">@color/black</item>

    <!-- Light action bar starting with Android M -->
    <!-- <item name="android:windowLightStatusBar">true</item> -->

    <!-- colorAccent is used as the default value for colorControlActivated, which is used to tint widgets -->
    <item name="colorAccent">@color/accent</item>

    <item name="colorControlNormal">@color/gray</item>
    <item name="colorControlHighlight">@color/gray_lighter</item>

    <!-- Customize actionbar element in white because we use a Light Theme with a strong primary color -->
    <item name="android:actionBarTabTextStyle">@style/MyThemeActionBar.TitleTextStyle</item>

    <!--  Hide ActionBar as we use toolbar -->
    <item name="windowNoTitle">true</item>
    <item name="windowActionBar">false</item>

    <!-- This is the default background color of the app. -->
    <item name="android:windowBackground">@color/background</item>

    <!--  This is the primary color of text. -->
    <item name="android:textColor">@color/white</item>
    <item name="android:textColorPrimary">@color/white</item>

    <!-- Cast -->
    <item name="mediaRouteTheme">@style/CustomMediaRouterTheme</item>
    <item name="castMiniControllerStyle">@style/CustomCastMiniController</item>
</style>

最佳答案

此对话框是 Android Media Router API 的一部分。您可能想搜索如何自定义该对话框样式。

关于android - 在 "Currently playing"转换屏幕中设置文本颜色样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48792375/

相关文章:

android - 我们可以通过 Chromecast 向电视发送通知吗?

ios - 是否有任何文档可用于将谷歌 CAF 集成到自定义 iOS 框架中?

android - 在 Android 中更改包名称后如何访问我的 Sqlite 数据库?

android - 如何获取已安装的 android 设备的外部存储列表

java - 在 Android 和 iOS 中使用的最佳服务器客户端通信协议(protocol)是什么?

javascript - android.permission.GET_ACCOUNTS,android.permission.READ_CONTACTS。在 APK 中使用这些权限的应用需要设置隐私政策

android - 无法使用 cast-android-sample 使 MPEG-DASH 工作

android - 使用 chromecast 的屏幕镜像示例代码或教程

android - 通过 Intent 激活屏幕转换