[android-beginners] Re: Streched Spinner

2009-09-04 Thread Jack Ha

Try:

SpinnerAdapter adapter = new ArrayAdapterString(this,
android.R.layout.simple_spinner_item, cities);
adapter.setDropDownViewResource
(android.R.layout.simple_spinner_dropdown_item);


--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together
The coverage you need at the price you want

The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.


On Sep 4, 3:55 pm, AlexDemers demers.a...@gmail.com wrote:
 Hi, I have 3 spinners: 2 using a strings.xml and the third one is
 binded with a SpinnerAdapter:

 SpinnerAdapter adapter = new ArrayAdapterString(this,
 android.R.layout.simple_spinner_dropdown_item, cities);
 spinner.setAdapter(adapter);

 For some odd reason, I get a streched spinner and a radio button
 inside the box:http://imgur.com/eRdek.png

 I tried changing to simple_spinner_dropdown_item to
 simple_spinner_item but when I see the list of selectable values, each
 of them is really thin and hard to chose with the 
 finger:http://imgur.com/7I05G.png

 How can I correct this behaviour?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Streched Spinner

2009-09-04 Thread AlexDemers

That did the trick.

Thanks, Jack.

On Sep 4, 8:36 pm, Jack Ha jack...@t-mobile.com wrote:
 Try:

 SpinnerAdapter adapter = new ArrayAdapterString(this,
 android.R.layout.simple_spinner_item, cities);
 adapter.setDropDownViewResource
 (android.R.layout.simple_spinner_dropdown_item);

 --
 Jack Ha
 Open Source Development Center
 ・T・ ・ ・Mobile・ stick together
 The coverage you need at the price you want

 The views, opinions and statements in this email are those of
 the author solely in their individual capacity, and do not
 necessarily represent those of T-Mobile USA, Inc.

 On Sep 4, 3:55 pm, AlexDemers demers.a...@gmail.com wrote:

  Hi, I have 3 spinners: 2 using a strings.xml and the third one is
  binded with a SpinnerAdapter:

  SpinnerAdapter adapter = new ArrayAdapterString(this,
  android.R.layout.simple_spinner_dropdown_item, cities);
  spinner.setAdapter(adapter);

  For some odd reason, I get a streched spinner and a radio button
  inside the box:http://imgur.com/eRdek.png

  I tried changing to simple_spinner_dropdown_item to
  simple_spinner_item but when I see the list of selectable values, each
  of them is really thin and hard to chose with the 
  finger:http://imgur.com/7I05G.png

  How can I correct this behaviour?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---