The tutorial code looks correct to me, @android:id is actually what's needed here. What compiling errors do you get?
On Mon, Dec 22, 2008 at 12:41 PM, erniejunior <[email protected]> wrote: > > Hi guys, > > in the Notepad Tutorial for Android in Exercise 1 (http:// > code.google.com/intl/de/android/intro/tutorial-ex1.html), Step 4 there > is a wrong code example: > > <?xml version="1.0" encoding="utf-8"?> > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ > android" > android:layout_width="wrap_content" > android:layout_height="wrap_content"> > > <ListView android:id="@android:id/list" > android:layout_width="wrap_content" > android:layout_height="wrap_content"/> > <TextView android:id="@android:id/empty" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="@string/no_notes"/> > > </LinearLayout> > > > But that don' t work on my system. the R.java dosen' t get updated. > The solution file is right: > > <?xml version="1.0" encoding="utf-8"?> > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ > android" > android:layout_width="wrap_content" > android:layout_height="wrap_content"> > > <ListView android:id="@id/android:list" > android:layout_width="wrap_content" > android:layout_height="wrap_content"/> > <TextView android:id="@id/android:empty" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="@string/no_notes"/> > > </LinearLayout> > > It would be cool to fix that. Less beginners will be confused. Maybe > it' s just my own system, that dosen' t run the example code...? > > Greetings > > > Maximilian > > > > -- Romain Guy Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

