android - When using scrollTo ListView does not refresh, but when manually scrolling it refreshes -
i have different colors different lines in listview, setting color of textbox depending on line number (in getview() of adapter). when manually scroll listview upwards right color displayed in bottom lines revealed. when utilize scrollto, doesnot happen, lines revealed have same color (they not updated).
has faced issue? seems baffling!
listview#scrollto
doesn't scroll list contents. (it's standard view method, , not specific lists @ all: scrolls listview view itself.)
instead, seek using listview#setselectionfromtop(0, int y)
scroll.
api 19+ has listview#scrolllistby(int y)
method if you're programming kitkat , up.
android android-listview
No comments:
Post a Comment