How does ListActivity create multiple list items

by Disco Stu 010 » Wed, 02 Jul 2008 01:05:12 GMT

Sponsored Links

A question for the experts on how ListActivity does its job.

My understanding of the documentation is that to give a custom look to  
ListActivity, one needs to provide a template View (through  
setContentView) that contains a ListView object with the ID "list".  
ListActivity then proceeds to use this template for all the rows it  

My question is, how does ListActivity create multiple instances of  
these ListView objects? (one for each row)  If using the  
"findViewById() method", one ends up with a single View object. Is  
there a straightforward way to create clones of a view object?

Any insights will be greatly appreciated.  I would like to do  
something similar but with a TableLayout. Specify a template for each  
column in the table and be able to instantiate view objects for each  
table cell.



Other Threads

1. Two-way sync adapter for custom accounts

Is there a way to have a sync adapter to synchronize from and to the
In the documentation and samples I can only find the cloud-to-device
And is it also possible to edit contacts from a custom account?

Any help would be appreciated. Thanks.


2. library projects

On this page:

It says:
One library project cannot reference another
A library cannot depend on another library.

So how do I go about having my library project use a shared resource
if it can't depend on any other libraries?

My particular instance is an activity I want to share in multiple
apps.  I want the activity to share a sound manager class that also
appears in multiple apps.  I don't see a way to have both factored out
at the same time.  If my library can't depend on another library, I'm
still gonna have duplicated code everywhere, am I not?

What good is this library stuff if I'm still gonna be repeating myself?

Greg Donald |


3. Apn axis & xl

4. OOT : Thanks to Aga prasetya.

5. I have a question about using queue at kernel

6. Bos AH selingkuh nih....

7. How to make virtual keyboard show word predictions (suggestions) for an EditText ?