> android Preview 中显示actionbaroverlaylayout
不使用actionbaroverlaylayout预览,将style.xml文件中的
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
修改为
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
<!-- Base application theme. -->
<style name="AppTheme" parent="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>
<!-- 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>
android Preview xml中显示actionbaroverlaylayout
最新推荐文章于 2024-03-30 10:20:04 发布