Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android 2.2 requestFocus() and spinners

I'm having problems using s.requestFocus() when s is a spinner. Is there a special treatment to get it to work when it's a spinner ? Thanks

like image 799
xain Avatar asked May 29 '26 14:05

xain


1 Answers

try this code..

spinner.setFocusable(true);
spinner.setFocusableInTouchMode(true);
like image 103
Jaydeep Khamar Avatar answered Jun 01 '26 07:06

Jaydeep Khamar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!