无法在Android Studio中将任何项目添加到activity

编程入门 行业动态 更新时间:2024-10-11 13:23:54
本文介绍了无法在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

本文发布于:2023-11-12 11:20:16,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1581353.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:中将   项目   Android   Studio   activity

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!