Wednesday, November 4, 2009

Re: [android-developers] Dynamically grow listview

Martin Obreshkov wrote:
> This approach is good but in first place i was looking for something
> else. In the article the method of growing the listview is simply to
> take care when the last visible element is reached and the listview
> grows with new elements (just like in android store when you scroll down
> apps) but what i was looking for is to implement something more like the
> native Android Music player. When you upload 2000 song on your sd card
> and start the Music Player the list with songs grow automatically and
> you see how the scroll is getting smaller. It's seems the player is
> querying the database all the time.
> Any idea how this functionality is implemented in the native android
> Music Player.

Perhaps using an AsyncTask and updating the contents of an ArrayAdapter
via publishProgress().

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate