6

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

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

1 回答 1

0

此对话框是 Android Media Router API 的一部分。您可能想搜索如何自定义该对话框样式。

于 2018-02-27T19:38:12.857 回答