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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -