1 Replies - 5652 Views - Last Post: 07 January 2013 - 01:43 PM

#1 kiriappa  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 18
  • Joined: 14-November 12

Android custom spinner styles further

Posted 07 January 2013 - 12:56 AM

first I want to say this is not creating same thread for custom spinner styles. In my application I like to show a string and a image at the spinner But when I go through the documentation I notice only following constructors.
ArrayAdapter(Context context, int textViewResourceId)
Constructor
ArrayAdapter(Context context, int resource, int textViewResourceId)
Constructor
ArrayAdapter(Context context, int textViewResourceId, T[] objects)
Constructor
ArrayAdapter(Context context, int resource, int textViewResourceId, T[] objects)
Constructor
ArrayAdapter(Context context, int textViewResourceId, List<T> objects)
Constructor
ArrayAdapter(Context context, int resource, int textViewResourceId, List<T> objects)
Constructor


So I can initially have one object. that is can be string ,image and etc.

But I wan to keep both string and a image.

I know how to show image and a string after spinner is expanded.

I think my problem is clear.Is there way to handle this??

Is This A Good Question/Topic? 0
  • +

Replies To: Android custom spinner styles further

#2 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10397
  • View blog
  • Posts: 38,475
  • Joined: 27-December 08

Re: Android custom spinner styles further

Posted 07 January 2013 - 01:43 PM

You could draw the String on the Image, and then use the Image.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1