我无法找到一种方法来保持我的应用程序样式,并在"当前正在播放"弹出屏幕。它在白色上是白色的,如下图所示。
似乎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>
答案 0 :(得分:0)
此对话框是Android Media Router API的一部分。您可能想要搜索如何自定义该对话框样式。