Hi,

>is there a one-to-one
> relationship between a getter / setter and an android XML attribute?

Most of the times, yes. Sometimes, no. For instance you can set
paddingLeft, paddingRight, paddingTop and paddingBottom in XML, but in
code you can only call setPadding(left, top, right, bottom).

> Why do some attributes use underscores (IE, layout_width) and some do
> not?

The underscores are used only for layout parameters. Attributes with
no underscores are View attributes.

-- 
Romain Guy
www.curious-creature.org

--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to