【发布时间】:2014-12-29 08:47:12
【问题描述】:
我正在运行最新版本的 android studio,问题是预览窗格在使用任何 AppCompat 主题时不呈现 ActionBar,如果我更改预览窗格的主题它工作正常(不更改实际主题) ,但是这样做有什么不同,
我的styles.xml如下
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
</style>
</resources>
当预览窗格设置为 AppTheme 时,ActionBar 不显示,但它在我的设备和 AVD 中运行良好,
如您所见,这使得调试和测试 ActionBar 变得很困难
请提出一些解决方法,AppCompat 主题与普通主题有何不同?,我只是一个 android 初学者。
谢谢!
【问题讨论】:
-
@JaredBurrows,感谢您的信息,但我没有创建赏金
标签: android android-studio android-actionbar android-theme android-styles