Android studio xml界面无法预览问题
如下图
修改style.xml中的
parent=“Theme.AppCompat.Light.DarkActionBar”
改为
parent=“Base.Theme.AppCompat.Light.DarkActionBar”
<!-- Base application theme. -->
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>