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. ThirdParty OMX IL 1.1 Compliant Component Shared Library


Can anyone please tell me, where I can place the ThirdParty OMX IL 1.1
Compliant Component Shared Library(.so) in PV framework.

I am using Opencore 2.0.



2. driving/walking directions on mapview and clearing of application(map) cache

Hi guys,

May I ask if anyone know how to get the driving/walking directions on
google maps (if supported) on mapview? so far I can only calculate
linear direction...

Also anyone know whats the command to clear application cache? I can
only find the permission to do it when i google for it.. i have no
idea how to use it =(

public static final String DELETE_CACHE_FILES
Allows an application to delete cache files.
Constant Value: "android.permission.DELETE_CACHE_FILES"


3. Intent and URI conversion problem (intent.toURI, Uri.parse)

4. ActivityGroup , Alerts and Configuration changes

5. Problems with creating a Hello World Application for Android

6. Non-Ti Wifi driver

7. How to put a breakpoint in code used by Phone app?