Use trackball for scrolling in Android ListView

Posted by gartenkralleb on Stack Overflow See other posts from Stack Overflow or by gartenkralleb
Published on 2010-06-16T14:10:16Z Indexed on 2010/06/16 14:12 UTC
Read the original article Hit count: 367

Filed under:
|

hi,

i have a ListView, whose content should not be selectable. i set the ListView to choiceMode="none" and set a transparent listSelector.

for touch mode it acts as desired. a problem is the use of the trackball. if i try to use it for scrolling, the scroll starts after the 10th push to "down". this is caused by the invisible listSelector, which scrolls down the list until the 10th list item is "invisibily" selected.

i try to override dispatchTrackballEvent and do the scrolling with scrollBy, but i did not finished this approach yet, to have a look on alternative suggestions.

is there a simple solution for my problem?

© Stack Overflow or respective owner

Related posts about android

Related posts about android-listview