I have a ListActivity which displays a ListView. I’m starting the activity from my main activity, and I’d like for the list view to appear as a subview in the view of my main activity. How do I do this?
(It’s enough to answer the more general question – how do you bind an activity to a subview in the content view of another activity?)
Set the id of your ListView to andriud:id=”@android:id/list”. See the Javadoc for ListActivity: