android studio中xml不能preview
打开res/values/styles.xml ,如下:
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
</style>
把Theme.AppCompat.Light.DarkActionBar改为Base.Theme.AppCompat.Light.DarkActionBar