problem in selecting entry from spinner widget

Put your problem here if it does not fit any of the other categories.

problem in selecting entry from spinner widget

Postby dexter » Wed Jul 23, 2008 12:30 pm

Hi guys,

I have a very simple layout on which i have put one spinner , in whose arrayadapter i have a string array containing the list of all the countries.
Now everything goes smooth , can see the list ,scroll the list ,select an entry and can process it.

What i cant do is custom select. What i mean by this is , for example suppose i want to select india, for that i will have to scroll whole way down from a listing countries till I listing countries.

What i want to do is when spinner is in focus, if i press the I key the list should update itself and the spinner should show all the I entries something like that.

i have been trying for guite long but no sucess .

plz guys help me out on this issue
Posts: 7
Joined: Mon Jun 16, 2008 7:18 am


Postby borya » Fri Jul 25, 2008 6:11 pm

I don't know if this is the nicest or easiest way of doing it, but I suppose you could set its onKeyListener which will respond to keyboard presses the same way an onClickListener responds to clicks.
Posts: 27
Joined: Wed Jul 02, 2008 7:50 pm
Location: California, USA


Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 5 guests