What is different between @id/android:list and @+id/android:list ?

by TreKing » Sat, 17 Jul 2010 03:54:23 GMT


Sponsored Links
 



I loves me some documentation:
 http://developer.android.com/guide/topics/ui/declaring-layout.html #id

-------------------------------------------------------------------------------------------------
TreKing < http://sites.google.com/site/rezmobileapps/treking> ; - Chicago
transit tracking app for Android-powered devices

--



What is different between @id/android:list and @+id/android:list ?

by DanH » Sat, 17 Jul 2010 07:41:49 GMT


 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#.




--


Sponsored Links


What is different between @id/android:list and @+id/android:list ?

by James Lee » Sat, 17 Jul 2010 09:22:47 GMT


 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. ;(







--



Other Threads

1. Get Process ID of while launching any specific applicatio

There is already a broadcast sent when an app is uninstalled.







-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

2. 1.5 bugs reports

Is this the right place to report bugs?  This must be unique to my
phone else I'd expect to find many reports here, but what the cause
may be I do not know.

Since the 1.5 upgrade, the phone exhibits a lot of strange behavior.
1) Calendar no longer works. It starts, then exists and not with a
"forced exit" msg. I've tried deleting all of it's data/cache. Same
behavior. It does appear in what looks like a background window (hold
"home", which I just discovered today), but if selected it just
returns to the main screen.
2) Market has the same problem.
3) Once the application list window is displayed, it takes a
noticeably longer time than with the previous version for the window
to respond to gestures
4) Set-up got into a weird circle of starting, "forced exit", repeat.
I tried to enter set-up to disable the wifi, but accidentally hit
something else, and do not know what that is.

there is more.

--~--~---------~--~----~------------~-------~--~----~

3. ScrollView always fill dialog

4. but, Apple iPhone tops JD Power satisfaction ranks

5. HTC magic beats iPhone on web browsing via 3G

6. what is ms for 60000ms, is it ms for Milli second OR for micro second?

7. Blocking UIThread till the .mp3 file completed in the b/g