Implement your own adapter. In that you can set the displayed views to
anything you want.
On 26 Feb 2013 03:18, "vergatario" <fernandocord...@hotmail.com> wrote:

> Guys am new to mono for android, I would like to display a spinner with
> icons
> and text, so far i have:
>
> *int[] icons = { Resource.Drawable.icon, Resource.Drawable.icon };
> ArrayAdapter adapter = new ArrayAdapter<int>(this,
> Android.Resource.Layout.SimpleSpinnerItem, icons);
> adapter.SetDropDownViewResource(Android.Resource.Layout.SimpleGalleryItem);
> Spinner spinner= FindViewById<Spinner>(Resource.Id.MyTypes);
> spinner.Prompt = "Select Card Type";
> spinner.Adapter = adapter;*
>
> But of course this simply will render the integer representation of the
> image into the spinner. Can anyone point me into the right direction?
>
> Thanks in advance!
>
>
>
> --
> View this message in context:
> http://mono-for-android.1047100.n5.nabble.com/spinner-with-icons-and-text-tp5712941.html
> Sent from the Mono for Android mailing list archive at Nabble.com.
> _______________________________________________
> Monodroid mailing list
> Monodroid@lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to