简体   繁体   中英

My android studio shows graphic on opening activity_main.xml

My android studio shows graphically editing instead of the written xml codes. 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.

On the bottom of that xml there are 2 tabs. 1st is Design and 2nd is Text. Select text and you should be able to see the xml file of layout.

After open the xml file you can view two button one is TEXT other is DESIGN on the bottom of xml file . using TEXT button u can wright xml file .

Save your XML file to layouts folder, then opening the xml file you can view two tabs at bottom. One is TEXT and other is DESIGN. Switch to TEXT button to edit xml file. Check below image: 在此处输入图片说明

Insufficient rep to comment.

In 2022 the buttons have moved and changed names:

At the TOP (right) of the XML visual editor you will see THREE buttons labelled Code, Split, Design You want the 'Code' button.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM