Dianne,

> I believe you can pass in null for it.

No. That doesn't seem to work. If I do 'new TextView( context, null,
myStyleId )' the label appears but the style is not applied. If I do
'new EditView( context, null, myStyleId )' the textbox doesn't appear
at all (maybe it has zero width?).

The documentation seems to suggest the 'new View( context,
AttributeSet, defStyle )' constructor is intended for subclasses, and
doesn't really go into how to call it externally. So I think I do need
to pass it an AttributeSet. The question is, where can I get such an
AttributeSet?

Richard.
--~--~---------~--~----~------------~-------~--~----~
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