I have found this example :
http://android-developers.blogspot.com/2009/05/painless-threading.html

What is the emptyview property list ?

On 16 juin, 05:29, adamphillips12 <[email protected]> wrote:
> If you mean the data is taking awhile to load and you want the
> activity to show fast first, then load in the data. Then you should
> probably load the data in a thread or you can even use the helper
> class ASyncTask. Call it onCreate() and when it finishes execution,
> send the result to the list.
>
> You can implement the loading functionality however you want. You
> could set the lists emptyview property to a progress indicator if you
> really wanted and then change it after the initial load to a proper
> empty data message. Or just start with a progress indicator with your
> listview not visible etc. Many ways, you'll have to do the research.
>
> On Jun 15, 10:18 pm, loudo <[email protected]> wrote:
>
> > Hello,
>
> > I want to load a list activity from a xml file.
> > I have done it but i would like to optimize load of data.
> > I would like to dislplay a message "Loading..." to prevent the user.
> > I have found progress bar example of  but i don't know when to display
> > it and how to know the data ar loaded.
> > I create my listview in the onCreate method. In this method i also
> > load the xml file and apply to the list view with the setAdapter
> > function. I think data are diplayed to user just at the end of the
> > onCreate method so i can't display a message to say data are loading
> > because data are alredy loaded.
>
> > So i just want to know how to load data for a list view and prevent
> > the user data is loading.
>
> > Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to