The problem is, when we want to drag a component to the layout design window, the component is not shown. But we could see the attributes of it on the right.

Now find app\res\values\styles.xml and modify it.

Change this line




<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">

to




<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">

Reference

[1] https://blog.csdn.net/dafei93/article/details/80471615

Leave a Reply

Your email address will not be published. Required fields are marked *