Стиль текста на экране "В настоящее время играет"
Я не могу найти способ сохранить свой стиль приложения ниже и отобразить текст на всплывающем экране "В настоящее время играет". Это белый на белом, как вы можете видеть на следующем рисунке.
Кажется, 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>
1 ответ
Этот диалог является частью API Android Media Router. Возможно, вы захотите поискать, как настроить этот стиль диалогов.