Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do you hand code layout XML file or use WYSIWYG tool to generate it

Tags:

android

Back in the day before NetBeans GUI builder (Matisse) is mature enough, I need to perform hand coding, in order to generate a Swing GUI form/ dialog layout.

Now, I no longer need to perform any hand coding for Swing GUI, as Netbeans is able to generate correct Swing GUI code. - A happy NetBeans user :)

Now, for Android App development, I was wondering, whether most of you are perform hand coding, or using some sort of WYSIWYG tool to generate the layout XML file?

Till now, I had tried Eclipse + SDK, DroidDraw. However, I was quite disappointing with those tools, as non of them able to generate my desired outcome.

like image 938
Cheok Yan Cheng Avatar asked Apr 27 '11 15:04

Cheok Yan Cheng


People also ask

What content is to about an XML layout file?

Each XML file contains a tree of elements specifying a layout of widgets and containers that make up one View. The attributes of the XML elements are properties, describing how a widget should look or how a container should behave.

What is a layout Editor in Android Studio?

The Layout Editor enables you to quickly build layouts by dragging UI elements into a visual design editor instead of writing layout XML by hand.

What is XML file in Android?

XML stands for eXtensible Markup Language, which is a way of describing data using a text-based document. Because XML is extensible and very flexible, it's used for many different things, including defining the UI layout of Android apps.


2 Answers

I definitely hand-code it. When I last tried the Eclipse editor, it was so terrible I wouldn't even use it for minor adjustments, as it'd mess up everything I'd previously written.

like image 187
David Hedlund Avatar answered Sep 24 '22 01:09

David Hedlund


Hand code all the way. I think its more comfortable for pure dev types like me who would rather become more familiar with the nuts and bolts rather than spend time learning an abstracted tool to do the same. That said, if a mature, effective Android layout tool shows up, I'll definitely be giving it a shot.

The place where I start disliking WYSIWYG layout editors is usually when you get into fluid layouts, which is critical to Android development. I know Apple likes using the word "fragmentation" to disparage Android's proliferation across devices. Its not a bad thing in its nature, but it does create unique problems in designing apps that will provide a uniform experience. I have yet to see a WYSIWYG editor that addresses this well.

like image 20
Tony Lukasavage Avatar answered Sep 25 '22 01:09

Tony Lukasavage