Hi, Android supports to bind and populate data to a list view in listActivity through some adapters.
You can define the list view in a xml file. Take notePad as example: //----------- // noteslist_item.xml ----------------------------------------------------------------------------------------- <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/text1" android:layout_width="fill_parent" android:layout_height="?android:attr/listPreferredItemHeight" android:textAppearance="?android:attr/textAppearanceLarge" android:gravity="center_vertical" android:paddingLeft="5dip" android:singleLine="true" /> -------------------------------------------------------------------------------------------- Then you can bind the data in the java code by an adapter: for example -------------------------------------------------------------------------------------------- Cursor cursor = managedQuery(getIntent().getData(), PROJECTION, null, null, Notes.DEFAULT_SORT_ORDER); // Used to map notes entries from the database to views SimpleCursorAdapter adapter = new SimpleCursorAdapter(this, R.layout.noteslist_item, cursor, new String[] { Notes.TITLE }, new int[] { android.R.id.text1 }); setListAdapter(adapter); --------------------------------------------------------------------------------------------- It works fine. Now my question is how to differentiate those populated TextView? Do they have different IDs? If the list item is a complex view with checkBox or radio button, how can we check their status/state respectively? Thanks. --elephantbug --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---