[android-developers] Re: How does Android Market fill in a list?
Thanks for the response... it very much solved the problem... i was not aware of the notifyDataChanged() method and the List8.java example in the API demos .. as i was referring the SlowAdapter.java ... i really appreciate ur help .. Keep the good work.. thanks again.. Regards, Sheik.. On Tue, Jul 21, 2009 at 10:37 PM, Moto medicalsou...@gmail.com wrote: John thanks for your post... I guess I'm over thinking this task... Thanks will use a thread for that... On Jul 21, 12:54 pm, Moto medicalsou...@gmail.com wrote: Not sure if this will help you but here it goes: Create a custom adapter and make its data public to that you can append your new data to it as it downloads. When you get say 10 items loaded you could trigger on the adapter notifiDataChanged. This will just refresh the data and take care of showing the new items without moving the scroll bar... I think this would work :P On Jul 21, 12:20 am, John Smith deltafoxtrot...@gmail.com wrote: 2009/7/21 Moto medicalsou...@gmail.com Ok so I remove that option... Any suggestions to achieve similar idea? Filling a list as it downloads? You need to create a background thread that downloads the list, and as it gets a block of information, say 1280 bytes it should then signal the UI thread to add new rows of information to the list. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How does Android Market fill in a list?
Not sure if this will help you but here it goes: Create a custom adapter and make its data public to that you can append your new data to it as it downloads. When you get say 10 items loaded you could trigger on the adapter notifiDataChanged. This will just refresh the data and take care of showing the new items without moving the scroll bar... I think this would work :P --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How does Android Market fill in a list?
John thanks for your post... I guess I'm over thinking this task... Thanks will use a thread for that... On Jul 21, 12:54 pm, Moto medicalsou...@gmail.com wrote: Not sure if this will help you but here it goes: Create a custom adapter and make its data public to that you can append your new data to it as it downloads. When you get say 10 items loaded you could trigger on the adapter notifiDataChanged. This will just refresh the data and take care of showing the new items without moving the scroll bar... I think this would work :P On Jul 21, 12:20 am, John Smith deltafoxtrot...@gmail.com wrote: 2009/7/21 Moto medicalsou...@gmail.com Ok so I remove that option... Any suggestions to achieve similar idea? Filling a list as it downloads? You need to create a background thread that downloads the list, and as it gets a block of information, say 1280 bytes it should then signal the UI thread to add new rows of information to the list. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How does Android Market fill in a list?
There's no codes of google market. 2009/7/21 Moto medicalsou...@gmail.com I'm currently trying to download List content and display it just like the android market does... Were can I find the Android Market code? Or any pointers how to approach such task? Thanks! Moto! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How does Android Market fill in a list?
Ok so I remove that option... Any suggestions to achieve similar idea? Filling a list as it downloads? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How does Android Market fill in a list?
2009/7/21 Moto medicalsou...@gmail.com Ok so I remove that option... Any suggestions to achieve similar idea? Filling a list as it downloads? You need to create a background thread that downloads the list, and as it gets a block of information, say 1280 bytes it should then signal the UI thread to add new rows of information to the list. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---