[EMAIL PROTECTED] wrote: > I've made Activity which extends ListActivity and I made a XML code > > I changed <ListView android:id="@+id/android:list" .... > TO <ListView android:id="@+id/list" ... > > It didn't work Why? What is different between @+id/android:list and @ > +id/list
ListActivity needs to know what widget is the ListView you want it to use. The way you do this is by using the Android-supplied identifier @+id/android:list. That's just the way ListActivity was written. While you are welcome to have a ListView with android:id set to @+id/list, ListActivity will not be able to use it, so you are better off just subclassing Activity and handling the ListView entirely yourself. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

