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 correct color displayed in bottom lines revealed. when use 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, try using listview#setselectionfromtop(0, int y)
scroll.
api 19+ has listview#scrolllistby(int y)
method if you're programming kitkat , up.
Comments
Post a Comment