gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 16:04:56 24 4
gpt4 key购买 nike

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


似乎 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com