Thank you Vincent, I've read the link you sent, and it was opening my mind. Now I've solved the problem inheriting from BaseAdapter. There are also some methods to ovverride, and the most important is getView for callback. Then I created a simple class that inherit from LynearLayout, to define the layout of each row. So I solved the problem.
The trouble I have right now, is simpler in my opinion. I've decided to delegate the loading of data from network to a thread class, that is started in the main activity with thread.start() passing to it's constructor the inherited BaseAdapter class, making the thread able to modify the list itself. Before launching the new thread the activity starts a ProgressDialog with pd = ProgressDialog.show(...params...); when the thread ends, it requests the stop of the ProgressDialog sending a signal to an handler made for this aim in this way: handler.sendEmptyMessage(0). Now you will ask: where is the problem? Well, the problem is that when the thread ends nothing is displayed on the screen, but the data are there!! The strange thing is that when I use the Hierarchy Viewer, clicking on the "Load View Hierarchy" button, the screen render the list!!! Can someone help me?? Thank you guys! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---