Hrk*_*Hrk 6 google-cast chromecast 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>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
192 次 |
| 最近记录: |