I am new to android studio and when I try to add code to activity_main.xml, I only see the design and blueprint. How do I get to the code?
I have attached a screenshot of what I see.
just use ctrl + b to go to xml file. or right click on hello world text and chek the last option in the list go to xml.
In android studio version 3.6.1 they have replaced the design and code buttons to the top right of the layout window. See in the top right corner of this image, where "code" is showing up :
It seems that you are getting trouble to open activity_main.xml file. It has a simple solution 1.Go to Project ( which is left side ) >> res >> layout >> activity_main.xml
and the other option is that in the bottom there is two option named as " Design and Text go-to Text it is your activity_main.xml file
I hope this will help you to find your activity_main.xml file
Thank you Percy
单击右键,然后单击转到代码选项。
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.