嗨,有人可以帮我点击MediaRouteButton后出现的样式对话框吗?
灰色背景上显示白色文字,看起来不太好.
android.support.v7.app.MediaRouteButton
Run Code Online (Sandbox Code Playgroud)
用样式包装在父级中
<FrameLayout
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:fitsSystemWindows="true"
app:popupTheme="@style/ThemeOverlay.AppCompat.Dark"
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
Run Code Online (Sandbox Code Playgroud)
(我知道我应该在这里使用工具栏,但它不符合我的要求)
它在MediaRouteButton上运行良好,后者变为白色,但它对对话框样式没有影响.
我试着查看Google提供的示例应用,但我没有找到任何可以帮助我的内容.链接到示例应用程序样式
我目前的主题:
<style name="Theme.AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>//Blue
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>//dark blue
<item name="colorAccent">@color/colorPrimary</item>//blue
</style>
Run Code Online (Sandbox Code Playgroud)