android - How to return a listview's scrollbar back to top, after changing data on adapter? -
i'm using viewflipper 2 listviews: 1 categories, , 1 data. every time user picks category - update 2nd listview's data (clear , add new data), call notifydatachanged, , call viewflipper shownext().
the problem when scroll down in list, , go (showprev) pick category, , again flip updated list - scrollbar i've left him, in middle of listview, , not on top.
how can take uppest can?
you can set scrollbar on top using: .setselection(0)
Comments
Post a Comment