简体   繁体   English

Android Studio activity_main.xml设计编辑器不让我拖放任何东西......?

[英]Android Studio activity_main.xml design editor not letting me drag and drop anything…?

Title says it all, image as follows. 标题说明了一切,图像如下。 Let me know what you can do! 让我知道你能做什么!

Image 1. Trying to drop a widget: 图1.尝试删除小部件:

在此输入图像描述

Image 2. Not dropping the widget: 图2.不删除小部件:

在此输入图像描述

Image 3. Xml file content 图3. Xml文件内容

在此输入图像描述

Go to the xml view and change the -1px to something positive. 转到xml视图并将-1px更改为正值。 Your rendering problem will be fixed and then you will be allowed to drag and drop views. 您的渲染问题将得到修复,然后您将被允许拖放视图。

The message also says (2 similar errors) . 该消息还说(2个类似的错误) Fix those too before trying to drag and drop views onto the layout. 在尝试将视图拖放到布局之前,也要修复这些问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Android Studio Activity_main.xml - Android Studio Activity_main.xml Android Studio:activity_main.xml和content_main.xml未显示设计预览&& ClassNotFoundException - Android Studio: activity_main.xml and content_main.xml not showing design preview && ClassNotFoundException 我的 android 工作室在打开 activity_main.xml 时显示图形 - My android studio shows graphic on opening activity_main.xml activity_main.xml未在Android中加载 - activity_main.xml is not loading in android Android Studio 1.4-解释activity_main.xml和content_main.xml - Android Studio 1.4 - Explain activity_main.xml and content_main.xml 为什么设计(activity_main.xml)和实际应用看起来不同? - Why Design(activity_main.xml) and actual app look different? 我在activity_main.xml中看不到textview和其他元素布局android studio - I cant see textview and other elements layout android studio in activity_main.xml Android Mainactivity不显示activity_main.xml - Android Mainactivity doesn't show activity_main.xml 为什么activity_main.xml在Android Studio中不显示我的组件,为什么28个API不起作用? - Why doesn't activity_main.xml show my components in Android Studio, and why does 28 API not work? 创建新的Android Studio项目时,为什么看不到activity_main.xml中的文本? - Why can't I see text in activity_main.xml when I create a new Android Studio project?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM