> 1) the current API is limited and cannot set all the view properties
> which are exposed as XML

I am very surprised to read this. It's actually the contrary: there
are APIs that are NOT exposed through the XML layer, but all XML
attributes *should* have an equivalent in the Java APIs. Could you
point to actual examples?

> 2) that the complete control of a View layout is best controled thru
> an XML object

XML doesn't not give you more control over the layout, it offers you
more flexibility with respect to configurations (portrait, layout,
screen resolution, etc.)

> Long story show can someone provide me some example code to show how I
> might apply a layout from an xml file to an exisisting TextView?

You can't. However, you can create a TextView from an XML layout file
using the LayoutInflater class. In general, you should not avoid using
XML. Like I said, the use of XML resources gives you the ability to
have a different UI depending on the configuration. It is already
important on the G1 (with portrait and landscape) but it will become
even more important when other Android phones reach the market.

-- 
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to