> XML is used to be able to have resources for different configurations:
> landscape, portrait, high dpi, French, etc. It has nothing to with
> being "hip and trendy."

Oh ok. I was under the assumption we're dealing with the same
component tree, regardless of it being set up declaratively (XML) or
procedurally (Java).

> Because enums are very costly.

Oh really, that must be unique to Dalvik then (as it goes against
Bloch's Effective Java recommendation). Surely that could be
abstracted out at the Dalvik level, giving programmers better type-
safety while remaining super efficient?!

> That's a very vague statement. Where should it be used more?

All over, for widgets and layouts, allowing for less verbose and more
streamlined Java code. I.e. have CheckBox.setText(...) return itself
rather than void, such as to make it shorter/easier setting multiple
properties.

/Casper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to