On Wed, Feb 25, 2009 at 3:52 PM, Mark Murphy <mmur...@commonsware.com> wrote: > > 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. >
Thank you. But when i put the xml into a file like this: <RelativeLayout android:id="@+id/carousel_row_layout" android:gravity="left" android:layout_width="fill_parent" android:layout_height="50px" android:orientation="horizontal" android:background="#000000" android:layout_alignParentTop="true"> </RelativeLayout> ADT complains with 'ERROR Error parsing XML:unbound prefix"? > -- > 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 -~----------~----~----~----~------~----~------~--~---