Android Linkify stops getSelectedItemPosition() from working?
I have a ListView which has a TextView in the row. The TextView has been Linkified and has had setMovementMethod(LinkMovementMethod.getInstance()) set on it.
The ListView is n开发者_JAVA技巧o longer selectable and the ListView's getSelectedItemPosition() always return -1 .
Is there a way to know where the ListView has scrolled to in this case?
You can try AdapterView#getFirstVisiblePosition()
it will return the position in the adapter for the first visible child view on the screen.
精彩评论