Vishnu P
Vishnu P

Reputation: 83

Android Studio - Cannot view code for activity_main.xml

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.

Upvotes: 5

Views: 12477

Answers (3)

Madhav Bist
Madhav Bist

Reputation: 1

Click right and click on go to code option.

Upvotes: 0

Parikshit Singh
Parikshit Singh

Reputation: 237

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:

Android Studio 3.6.1 screenshot: Code, Split, Design position

Upvotes: 8

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.

Upvotes: 15

Related Questions