开发者

How to view .xml output on the go? (Android App-building help)

开发者 https://www.devze.com 2023-01-21 20:14 出处:网络
I\'m a newbie Android App Developer, also new with xml. I was just wondering if there is an ea开发者_C百科sier way to view xml output other than using eclipse to compile the android application (java

I'm a newbie Android App Developer, also new with xml. I was just wondering if there is an ea开发者_C百科sier way to view xml output other than using eclipse to compile the android application (java + xml) and then see output in the android emulator. Just asking because it takes forever to check my UI through eclipse IDE to turn on android emulator then open my application, and I feel that there must be an easier way. I have searched for solutions but either I'm wording it incorrectly or I just do not know the correct terminology or there is no other way(hopefully not this option). Please help me figure out to how to run XML code to check and see the proper UI output (its layout, widgets in correct places etc.) without having to compile my application code every time.

I have already looked into DroidDraw - it provides one output within the the application and another output in android emulator. I find it quite inconsistent.

Any help would be highly appreciated.

Thank you


It's not very great, but Eclipse with the android plugin has a visual mode where you can see a preview of your xml immediately. It won't give you 100% accuracy but it does definitely help with simple mistakes. Just open your layout xml in eclipse, and notice the two tabs at the bottom: one is for the xml text, the other for the visual representation of it. You have dropdown menus at the top to try your layout on different screen sizes and orientations.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号