Anthony wrote:
> I want the spinner displays ImageView+TextView, so I create two
> classes as below:
You may have better luck replacing AlbumSpinnerItem with an XML layout
and using LayoutInflater. I have six or seven blog posts on the topic
over on AndroidGuys (search for Fancy ListViews). While I demonstrate
the techniques for ListView, rather than Spinner, the same techniques
should hold.
> public class AlbumSpinnerAdapter extends
> ArrayAdapter<AlbumSpinnerItem> {
Adapters are meant to hold models, not views. So, here, I would expect:
public class AlbumSpinnerAdapter extends ArrayAdapter<Album>
or something like that.
--
Mark Murphy (a Commons Guy)
http://commonsware.com
Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---