How to use only the Android Studio Interface Editor?

2

I program for Android with Xamarin on Visual Studio , but I do not short anything its design editor, how can I use only the Android Studio editor when I need it? I changed the design extension from .axml to .xml and I opened it in Android Studio , I could open it, but it does not have the tips when typing and it does not have the visual design, which is what I wanted to see if it is coming out all right. I can open an empty project and copy my design there, but project takes a long time to open in Android Studio so I would lose a lot of time. But then, do you have any way to do that?

    
asked by anonymous 03.11.2017 / 22:42

2 answers

1
  

"I changed the design extension from .axml to .xml and opened it in Android Studio, I was able to open it, but it does not have the tips when typing or   has the visual design, which is what I wanted to see if it's coming out   all right "

Autocomplete does not give the tips because it needs a project that contains the application gradle with the libraries and references, they are the ones that make the tips and preview the screen appear.

Have you updated the VS and Xamarin extensions? Microsoft has updated and the tool is better than before.

    
04.11.2017 / 03:55
1

For a xml layout file to open in the Android Studio editor, it must be inside the res/layout folder of the project.

It's a little "weird" whatever you want, however you can do the following:

  • Create a project for this purpose and keep it open.
  • In Windows Explorer, right-click the file you want to edit and choose Copiar .
  • Go back to Android Studio, right-click the res/layout folder, and choose Paste .
  • In the window that opens, change the extension to xml .

The file opens in a new tab, allowing it to be edited in the layouts editor.

Note that if layout references other resources they must be in their res/xxx folders.

    
03.11.2017 / 23:17