Changing this to the standard xml extension will be easy to edit with any android screen edito, like the excellent judea editor.
Thanks.
Changing this to the standard xml extension will be easy to edit with any android screen edito, like the excellent judea editor.
Thanks.
What is the Judea Editor?
I feel a Monty Python moment coming on…
Sorry for my typo…
I mean IntelliJ Idea UI editor. Is the best editor in my opinion. But in any case, what is the sense of changing the standard extension for android layout files? That difficult open in ANY android UI editor.
I have edited files in the Android Studio UI editor (based on IntelliJ) simply be renaming the extensions.
@steveflack well, yes, renaming the extension is a needed step. The question is why is needed? Have RO a own ui designer? No, so , why just don’t respect the android standard for the file extension?
I don’t want to sound aggressive, just proposing a better solution than actual.
I suspect it’s because the extension denotes something to the tools (maybe the XML editor). I doubt it’s done just for fun.
The issue is indeed that to get hilighting and “code completion” you need a unique file extension in Visual Studio.
@ck that are bad news…
Maybe it changes on Fire?
I don’t know Visual Studio internals. But what about when i double click on the layout file, it copies to temp, change extension, open in Android studio (or intellij editor) editor.
When returns rename again to standard extension.
A simple(?) way to automate layout edition from fire or VS.
Best regards.
@steveflack can you please tell me the exact steps you do to open a oxygen layout foe inside Android Studio or IntelliJ?
I find it embarrassing because i need to rename and copy inside a existent project.
Thanks.
@DonaldShimoda I’m afraid it’s not that great a solution. I created an empty android project in android studio and copied the file I wanted to edit into that project.
@steveflack exactly what i suppose. A you say i open it i suppose you just open the file without copying. So, you must change the extension and move to another folder, not very practical way to do, right?
And very prone to human errors.
What we want to do is something like in XCode, where if you double click a layout it opens it in Android Studio with back and forward syncing.
@ck exactly, that will be great.
Any progress on this?
For one, you can just rename em manually for now.
No progress on having them automatically just use “xml” form templates. no. on my list though.
What i’ll do is make Fire change the extension to .xml when you create a new project. When you open those in VS, you wnt get IntelliSense then. And this wont affect VS projects coming to Fire.
I do, it builds ok on Fire.
I believe the only final touch to make super comfortable to developers of android is fire allow to open automatically activities on an ui editor as Intellij Idea or Android Studio (i prefer the first IDE).
Best regards.
Will do. Can both of these just open the .xml file directly (ie when clicked in Finder)?
No, sadly the only way to open this is from inside the IDE.I bet they have no way to detect what kind of file is because the lack of a specific layout extension.
The procedure right now is copy the text from the fire layout file inside a xml layout file already created on a temp project on IntelliJ Idea, make changes and copy back to fire file.