restrict spinner to drop down

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

restrict spinner to drop down

Postby ulliGT » Mon Jan 28, 2008 5:40 pm

hey everybody!

i'm having some trouble here creating a dialog window containing a bunch of spinners. the problem is that i cannot place two spinners horizontally next to each other for i can never reach the second one due to the direction keys only being listened to by the spinner and not by the focus (i fear this was not too understandable *g*).

however... what i'm now trying to do to work around this problem is using the spinners just as dropdown menus. is that possible? can i disable the spinning and only allow the drop functionality?

Once Poster
Once Poster
Posts: 1
Joined: Mon Jan 28, 2008 5:34 pm


Postby bluefloyd8 » Mon Jan 28, 2008 9:54 pm

Im not an android guru (in fact, im still a beginner). I think you might be able to overload/override onKeyDown() function for the spinner. Then, you can modify it to not respond to LEFT/RIGHT key commands.

public boolean onKeyDown(int keyCode, KeyEvent event) ... inner.html

Its just an idea.
User avatar
Experienced Developer
Experienced Developer
Posts: 70
Joined: Tue Jan 22, 2008 3:57 am
Location: Indiana, USA


Return to Other Coding-Problems

Who is online

Users browsing this forum: Exabot [Bot] and 7 guests