05-07-2012 08:32 AM
I have a scrollable horizontal field manager. this manager contains 15 bitmap field.I have one manager on which i am showing the image and one other manager on which i am showing list data related to this particular bitmap field.
I need to do update image on manager and data on focus moves from one bitmap to other.it is taking some time.because i am fecthing data from database.On scroll app looks like it hangs.How i can manage a smooth scroll here.Is the use of thread is good one.
05-07-2012 08:39 AM
05-07-2012 08:59 AM
Thanks simon for reply
Now i use thread here.And it works fine.But if user scroll field manager again and again many threads start and the last updation comes with a gap of time.Is there any way to manage this things.Like can i start only last thread and all other will stop.
05-07-2012 09:12 AM
05-07-2012 11:35 AM
In this particular case, where you really require all images to be present to allow reasonable scrolling speed, I would not try to fetch the image as part of the scroll action.
I think you have two options:
1) Wait till the user has all the images before displaying. And cache the images so that they are not downloaded twice.
2) Alternatively, display a placeholder image and replace this as the actual images are downloaded. This is how I would do it.
Or have I misunderstood?