Adjust the color of the text on the Now Playing screen

I can’t find a way to save my application style below and display the text in the “Current Player” pop-up screen. It is white on white, as you can see in the following figure.

It seems textColor is used for text and colorPrimary for background. I have white color as it is used in other parts of the application. Is there a way to give a theme only to this dialogue?

<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>
+6
source share
1 answer

This dialog is part of the Android Media Router APIs. You might want to find a way to customize the style of the dialog.

0
source

All Articles