Jason Proctor wrote: > i thought by now you could read my mind :-) > > assuming that the XML enclosed in the post is in res/layout/contact_view.xml > > in the custom ListView... > > LayoutInflater inflater = LayoutInflater.from (this.context); > > // passing null here, as i'm assuming that the ListView will hook the > view up with its hierarchy > ContactView contactView = (ContactView) inflater.inflate > (R.layout.contact_view, null); > > in the custom item View... > > LinearLayout top = (LinearLayout) findViewById (R.id.contact_top_layout);
Try contactView.findViewById(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---