I was browsing the Android commit tree, as I like to do at 3:20am sometimes, and I just saw a new commit by Tor Norbye with the following description that made my heart skip a beat: "Add autoformatting of XML." This little update may not mean much to the regular folks, but to Android developers, like myself, this has been a long requested feature.
About a year ago, I wrote this article: Auto Formatting Android XML Files With Eclipse, which described how easy it is to achieve uniform, formatted XML files in Eclipse while doing Android development. Read More
As if Samsung's Epic 4G and HTC's EVO 4G weren't enough to keep Sprint's customers happy, an anonymous tipster just let XDA-developers in on another device that might be headed to the nation's third-largest carrier: the HTC Knight. He didn't exactly provide a heap of information about it, but he did give XDA the following excerpt from an XML file, presumably part of an instruction manual:
3. Make sure to activate your device before you operate the handset by setting up the Google account on the device.
This post and all its comments were migrated from Artem's personal blog beerpla.net
when Android Police launched. If you would like to visit the original post there, please click here
In this article I will describe the problem I've had with Eclipse's handling of XML file formatting as well as the best way to fix it.
I use Eclipse to do my Android development for a few reasons:
- it's the only IDE fully supported by the Android dev team
- it has a visual Layout/Resources builder that transforms XML files into corresponding visual representations
- it's free and open source
- I've been using Eclipse for many years and am very familiar with it
In order to use the visual features in Eclipse when developing for Android, you need to install the ADT plugin
provided by Google
However, one thing about Eclipse Android development has bothered me for a while - and that is XML formatting by the visual tools. Read More