Meryl Silverburgh wrote: > I know my custom widget need to be inherited from view, but if i do > that, I can't do 'setContentView()' in my custom widget class (since > that is an Activity method).
If you need to turn layout XML into a tree of View objects outside setting the activity's content view (e.g., custom rows in a ListView), you can use LayoutInflater. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Published! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---