Friday, July 16, 2010

[android-developers] Re: What is different between @id/android:list and @+id/android:list ?

Thank you for your answer.
You're right.
@+xxxx does mean make new id.

I think It will be not working if I use @+id/android:list instread of
@id/android:list. \
But, It is also working. According to that document, ListActivity may
generate
some error when it use @+id/android:list because we not use existed id
but add new id.

I don't know why it is working. ;(

On 7월17일, 오전8시41분, DanH <danhi...@ieee.org> wrote:
> In a nutshell, "@id/xxx" means use that pre-existing ID#. "@+id/xxx"
> means assign a new ID# to that symbol and then use the ID#.
>
> On Jul 15, 12:47 am, James Lee <eso...@gmail.com> wrote:
>
> > Hi, everyone~
>
> > I've some test about Android ListActvity. As you know, we have to set
> > @id/android:list as ListView id in layout XML, when we use
> > ListActivity in our project. But, It is working fine when I use @+id/
> > android:list instead of @id/android:list. Um.. Anyone know what is
> > different between @id/android:list and @+id/android:list ?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate