Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to opening layout xml files in Android Layout Editor?

when I open my layout xml files its opening with default xml editor how to change it to Android Layout Editor without right click and open with option.

problem happens when I try to updated my android sdk and eclipse plugins to iceCream Sandwitch(ICS).

like image 968
Padma Kumar Avatar asked Nov 01 '11 12:11

Padma Kumar


People also ask

How can I see the XML file in Android Studio?

xml files. In the Project > Android panel on the left, select ModuleName > res > values. Double-click strings. xml to open it for editing.

Can I edit XML files Android?

In Android Studio, you will see all the projects's XML files and can edit them with all the tools Android Studio provides, including the visual designers. As you make changes and save them in Android Studio, they will automatically reflect back into your Elements project inside Visual Studio.

How do I open layout editor?

Open an existing layout in Android Studio, and click the Design button in the top-right corner of the editor window. In the Component Tree, right-click the layout, and then click Convert your-layout-type to ConstraintLayout.


2 Answers

Go to Window->Preferences->General->Editors->File Associations and set your default editor there.

like image 132
Rohan Avatar answered Oct 06 '22 07:10

Rohan


This happened with my ADT plugin (version v21.1.0-569685). I found that there were two tabs underneath the XML. The tab with text "filename.xml" was selected, and when I selected the "Graphical Layout" tab, this brought me back to the layout editor.

like image 39
craigmcnulty Avatar answered Oct 06 '22 06:10

craigmcnulty