我试图用新的支持库工具栏重新创建 Theme.AppCompat.Light.DarkActionBar
的外观。
如果我选择 Theme.AppCompat.Light
我的工具栏将是光明的,如果我选择 Theme.AppCompat
它将是黑暗的。(从技术上讲,你必须使用 .NoActionBar
版本,但就我所知,唯一的区别是
<style name="Theme.AppCompat.NoActionBar">
<item name="windowActionBar">false</item>
<item name="android:windowNoTitle">true</item>
</style>
现在没有 Theme.AppCompat.Light.DarkActionBar
了,但是我天真地以为自己做一个就足够了
<style name="Theme.AppCompat.Light.DarkActionBar.NoActionBar">
<item name="windowActionBar">false</item>
<item name="android:windowNoTitle">true</item>
</style>
但是我的工具栏仍然是 Light
主题的。我已经花了几个小时尝试不同的组合混合黑暗(基础)主题和光的主题,但我只是找不到一个组合,让我有光的背景上的一切,但工具栏。
有没有办法获得与进口 android.support.v7.widget.Toolbar
的 AppCompat.Light.DarkActionBar
外观?