JP wrote: > Can you point me to an example of this? http://wiki.andmob.org/samplecode
In there, you will find links to a half-dozen or so blog posts I have up on AndroidGuys in the Fancy ListViews series that covers all of this. They are written in the context of ListView, but the basic concepts should hold for adapters aimed at Spinners. > I keep getting a nullpointer exception at this line: > > convertView = mInflater.inflate(R.layout.my_spinner_view, > null); That means mInflater is null. > I don't know what to put in the > android:id="@+id/list" /> > > line, because the spinners are created at runtime and I do not know > the ID's at compile time. I have no idea what you mean by this. > I would like to add two different layouts to the spinner items, and > this could be done based on the position value I guess. Yes. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

