I have a List in my dialog and I want to find out what开发者_高级运维 it the first visible String in the list where ever the list is scrolled at that moment. Is there a way of doing that ?
List.getTopIndex() should be helpful in identifying the index of the top visible element. After the index is obtained, getItem (index) can be used to obtain the string value.
So, the API should be list.getItem (getTopIndex())
精彩评论