How to use Android Studio Interface Editor only?

Asked

Viewed 749 times

2

I program for Android with Xamarin in the Visual Studio, but I don’t like his design editor at all, I can only use his editor Android Studio when I need it? I changed the design extension from .axml for .xml and opened on Android Studio, I was able to open it, but it doesn’t have the tips at the time of typing and it doesn’t have the visual design, which is what I wanted to see if everything is going well. I can open an empty project and copy my design there, but project takes to open on Android Studio then I’d waste a lot of time. But then, there’s some way to do it?

  • In Android Studio you can edit the layout only in the mode xml without using visual mode, and even in xml has a preview on the side to see how it’s coming out

  • until you are not with an open project? being just open a xml (the design) same?

  • No. You have to have the IDE open clear.

  • Ah, I see, I was looking for a way to use only the editor xml, even try the open IDE, just do not need to open a project to do this, I think I will stay in Visual Studio even and when you need to view or Clean or open a project in Android Studio

2 answers

1

To which a file(layout) xml is opened in the layouts from Android Studio it has to be inside the folder res/layout of the project.

It’s a "little weird" what you want, yet you can do the following:

  • Create a project for that 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 folder res/layout and choice 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.

Note that if the layout reference other Resources they must be in the respective folders res/xxx.

  • 1

    But do you need an open project in Android Studio for that? I just wanted the layouts editor, kind of "standalone", because opening Android Studio and Visual Studio at the same time would require a little more of my pc, not to mention that Android Studio takes a little while to open. But if I do not have a way to do this I can stay in the xml editor of Visual Studio anyway, it is nothing that can compromise the programming, would only help me more since the viewer design it takes to open here, the indentation is not so good and nor the tips

  • 2

    "But you need an open project in Android Studio for this?": Yes, as far as I know there’s no other way. "... Android Studio takes a while to open": You only have to open it once and keep it open.

  • 1

    I understand, but keeping it open with Visual Studio would make my pc slow, I think I’ll settle for the Visual Studio editor anyway, thanks anyway

1


"I changed the design extension from . axml to . xml and opened in Android Studio, I was able to open, but it doesn’t have the tips to type and has the visual design, which is what I wanted to see if it’s coming out all right"

The autocomplete does not give the hints because it needs a project that contains the "Gradle" of the application with the libraries and references, they are the ones that make appear the hints and the screen preview.

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

  • 1

    I’m with VS 2017, I’ll see if there are any updates and see if it improves, anyway, thanks, if the update improves milestone as answered, if not, I keep using Android Studio when you need it

Browser other questions tagged

You are not signed in. Login or sign up in order to post.