Looks like the page has some id attribute with the proper namespace prefix and some that are missing it.
I've filed a bug internally to make sure this gets fixed. thanks! Xav On Fri, Sep 11, 2009 at 9:08 AM, Mark Murphy <mmur...@commonsware.com> wrote: > > jotobjects wrote: >> ERROR IN DOCUMENTATION - see >> >> >> http://developer.android.com/guide/topics/resources/available-resources.html >> >> --- quote -- >> When declaring an ID value for an XML tag, use this syntax. Example: >> <TextView id="@+id/nameTextbox"/>, and refer to it this way in Java: >> findViewById(R.id.nameTextbox) >> -- end quote -- >> >> The above example is WRONG. It should be this way -- <TextView >> android:id="@+id/nameTextbox"/> > > Way back in the spring of 2008, you did not need the android: prefix on > android:id. They changed that, but apparently missed this reference in > the documentation. Most of the documentation is correct, AFAICT. > > You may wish to post this to http://b.android.com if it is not already > there. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://twitter.com/commonsguy > > Android Training in Germany, 18-22 January 2010: http://bignerdranch.com > > > > -- Xavier Ducrohet Android Developer Tools Engineer Google Inc. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---