简体   繁体   English

我的 android 工作室在打开 activity_main.xml 时显示图形

[英]My android studio shows graphic on opening activity_main.xml

My android studio shows graphically editing instead of the written xml codes.我的 android 工作室显示图形编辑而不是书面 xml 代码。 The online curse that i am studying requires me to write the xml codes so please tell me how can i switch to text editing of the visual of my app.我正在研究的在线诅咒要求我编写 xml 代码,所以请告诉我如何切换到我的应用程序视觉的文本编辑。

On the bottom of that xml there are 2 tabs. 在该xml的底部,有2个选项卡。 1st is Design and 2nd is Text. 第一个是设计,第二个是文本。 Select text and you should be able to see the xml file of layout. 选择文本,您应该能够看到布局的xml文件。

After open the xml file you can view two button one is TEXT other is DESIGN on the bottom of xml file . 打开xml文件后,您可以在xml文件底部查看两个按钮,一个是TEXT,另一个是DESIGN。 using TEXT button u can wright xml file . 使用TEXT按钮,可以将xml文件打包。

Save your XML file to layouts folder, then opening the xml file you can view two tabs at bottom. 将XML文件保存到layouts文件夹,然后打开xml文件,您可以在底部查看两个选项卡。 One is TEXT and other is DESIGN. 一个是TEXT,另一个是DESIGN。 Switch to TEXT button to edit xml file. 切换到TEXT按钮以编辑xml文件。 Check below image: 检查下图: 在此处输入图片说明

Insufficient rep to comment.没有足够的代表发表评论。

In 2022 the buttons have moved and changed names:在 2022 年,按钮已移动并更改了名称:

At the TOP (right) of the XML visual editor you will see THREE buttons labelled Code, Split, Design You want the 'Code' button.在 XML 可视化编辑器的顶部(右侧),您将看到三个标记为 Code、Split、Design 您想要“Code”按钮的按钮。

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

相关问题 Android Studio Activity_main.xml - Android Studio Activity_main.xml 我的activity_main.xml出问题了吗? - Is there something wrong with my 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 Android Studio:activity_main.xml和content_main.xml未显示设计预览&& ClassNotFoundException - Android Studio: activity_main.xml and content_main.xml not showing design preview && ClassNotFoundException 为什么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? 我在activity_main.xml中看不到textview和其他元素布局android studio - I cant see textview and other elements layout android studio in activity_main.xml Android Studio activity_main.xml设计编辑器不让我拖放任何东西......? - Android Studio activity_main.xml design editor not letting me drag and drop anything…? Android Mainactivity不显示activity_main.xml - Android Mainactivity doesn't show activity_main.xml 创建新的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