Sorry, I misspoke, the tutorial is correct, in Step 4 the two id's
specified are special id's defined by the platform. The syntax in Step
5 (and specified in the previous) post is how to define your own IDs.

Cheers,
Justin
Android Team @ Google

On Aug 13, 3:42 pm, "Justin (Google Employee)" <[email protected]>
wrote:
> It looks like our notepad tutorial is a little rusty.
>
> <ListView android:id="@+id/list" ... />
>
> Is what you want.
>
> Cheers,
> Justin
> Android Team @ Google
>
> On Aug 10, 6:59 am, Honest <[email protected]> wrote:
>
> > Hello,
>
> > Can some one tell me how can i specify I.D in android ? acutlly i want
> > to create List . I add the following code in main.xml file. But i do
> > not know where i should specify @android:id /list. Can some one tell
> > me where i should specify it ?
>
> > <ListView android:id="@android:id/list"
> >                android:layout_width="fill_parent"
> > android:layout_height="wrap_content"
> >                android:scrollbars="none"/>
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to