android - how to perfom smooth scrolling to a position without actually having to see the scrolling taking place in a listview? -



android - how to perfom smooth scrolling to a position without actually having to see the scrolling taking place in a listview? -

i have made android application in have listview , when list view loads wish show middle portion of adapter, hence using smoothscrollto method in listview.

the problem above method can see scrolling take place, don't want.

i have tried putting progressdialog when scrolling taking place , guess due load on ui thread, never shows up. hence hiding scrolling taking place behind progressdialog out of question.

i cannot set smoothscrolling code in thread because ui thread can touch ui elements.

how avoid user seeing scrolling take place?

thank in advance.

you can utilize scrollto(x,y) method of listview instead of smoothscroll

android

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -