I'm using IntelliJ Android-Studio 0.8.2 and i'd like to know if it's possible to open the code by default when editing XML files?
Opening multiple files always shows Design tab, while opening single files, though, it sometimes opens them in Text tab but sometimes not.
Is there any way to set the default tab to Text ? It's pretty annoying as I rarely use the Design tab. Here's a screenshot of what I'm talking about:
Thanks in advance.
View an XML file in a browserIn Chrome, just open a new tab and drag the XML file over. Alternatively, right click on the XML file and hover over "Open with" then click "Chrome".
I think the xml is chosen because the xml tags are defined in android according to the UI framework classes and the attributes are defined corresponding to the member variables of the class in the UI framework. This mapping was not possible for the html.
yes it is possible you can design whole page in html and stored in Asset folder with image used,css,script folder,and in android activity you just open it in webView .
Newer (I guess 2.x+) versions of Android Studio have this option in the main settings:
Open the settings with one of the following actions:
Ctrl+Alt+S
.File | Settings
for Windows and Linux or IntelliJ IDEA | Preferences
for OS XCtrl+Shift+A
, type settings and press Enter
.Then navigate to the following sub-menu:
Editor -> Layout Editor -> "Prefer XML editor"
This has been added in the newest release of Android Studio (0.8.12).
Other features of the new release can be found here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With