Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spinner scrolls to top when onLongPress or scrolling slowly

I have a spinner with a LOOONG list of items. What I noticed is that whenever I try to scroll the spinner items SLOWLY, it suddenly takes me back to the top of the spinner selection. I'm just using a standard Spinner with a simple ArrayAdapter. It's not really an issue, but it's kinda annoying that whenever a user would scroll slowly, the selection resets all the way to the top. You can fling the list, but if you scroll slowly, keeping your finger on the screen, it scrolls back up to the top of the list.

Has anyone else experienced this problem? Why does it occur? Is there a way to "fix" this issue?

Note: The problem I have is only on a Spinner.

like image 284
momoja Avatar asked Nov 09 '14 10:11

momoja


1 Answers

I had exactly the same issue and removing the app:popupTheme attribute fixed it. Check this comment: https://issuetracker.google.com/issues/37065626#comment15.

like image 58
makovkastar Avatar answered Oct 20 '22 03:10

makovkastar