本文介绍了无法在Android Studio中将任何项目添加到activity_main.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Android Studio中,我无法在设计视图中将Palette中的任何项目添加到activity_main.xml。它不会让我拖放它们。任何想法为什么会发生这种情况?
In Android Studio, I can't add any items from Palette to activity_main.xml in Design view. It just won't let me drag and drop them. Any idea why this happens?
这是PrintScreen:
Here is the PrintScreen:
推荐答案
根据android的新设计方法studio for android开发你不能添加任何元素到activity_main.xml。相反,您应该将它们添加到content_main.xml。
According to new design method followed in android studio for android development you cannot add any elements to the activity_main.xml. Rather you should add them to content_main.xml.
您可以从这个答案。
更多推荐
无法在Android Studio中将任何项目添加到activity
发布评论