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. compile 2.6.27 goldfish branch failed

hi,

first, i check out the source code
    git clone git://android.git.kernel.org/common.git
    git checkout -t origin/android-goldfish-2.6.27 -b goldfish
then from
http://www.codesourcery.com/sgpp/lite/arm/portal/package3689/public/arm-none-eabi/arm-2008q3-66-arm-none-eabi.exe
  i downloaded the toolchain.
with the arm-none-eabi-gcc -v, i got my gcc version is
gcc version 4.3.2 (Sourcery G++ Lite 2008q3-66)

in my code path
    change makefile  to the following.
              ARCH   ?= arm
              CROSS_COMPILE ?= arm-none-eabi-
    make mrproper
    make goldfish_defconfig
    make zImage

then i got the following error
$ make zImage
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/docproc
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf -s arch/arm/Kconfig
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  Generating include/asm-arm/mach-types.h
  CHK     include/linux/utsrelease.h
  UPD     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-arm
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/docproc
  CC      kernel/bounds.s
In file included from include/linux/types.h:11,
                 from include/linux/page-flags.h:8,
                 from kernel/bounds.c:9:
include/linux/posix_types.h:47:29: error: asm/posix_types.h: No such file or
dir
ectory
In file included from include/linux/page-flags.h:8,
                 from kernel/bounds.c:9:
include/linux/types.h:12:23: error: asm/types.h: No such file or directory
In file included from include/linux/page-flags.h:8,
                 from kernel/bounds.c:9:
include/linux/types.h:16: error: expected '=', ',', ';', 'asm' or
'__attribute__
' before '__kernel_dev_t'
include/linux/types.h:19: error: expected '=', ',', ';', 'asm' or
'__attribute__
' before 'dev_t'
include/linux/types.h:20: error: expected '=', ',', ';', 'asm' or
'__attribute__
' before 'ino_t'
include/linux/types.h:21: error: expected '=', ',', ';', 'asm' or
'__attribute__
' before 'mode_t'
include/linux/types.h:22: error: expected '=', ',', ';', 'asm' or
'__attribute__
' before 'nlink_t'
include/linux/types.h:23: error: expected '=', ',', ';', 'asm' or
'__attribute__
' before 'off_t'
include/linux/types.h:24: error: expected '=', ',', ';', 'asm' or
'__attribute__
' before 'pid_t'
include/linux/types.h:25: error: expected '=', ',', ';', 'asm' or
'__attribute__
' before 'daddr_t'
include/linux/types.h:27: error: expected '=', ',', ';', 'asm' or
'__attribute__
' before 'suseconds_t'
include/linux/types.h:28: error: expected '=', ',', ';', 'asm' or
'__attribute__
' before 'timer_t'
include/linux/types.h:29: error: expected '=', ',', ';', 'asm' or
'__attribute__
' before 'clockid_t'
include/linux/types.h:35: error: expected '=', ',', ';', 'asm' or
'__attribute__
' before 'uid_t'
include/linux/types.h:36: error: expected '=', ',', ';', 'asm' or
'__attribute__
' before 'gid_t'
include/linux/types.h:37: error: expected '=', ',', ';', 'asm' or
'__attribute__
' before 'uid16_t'
include/linux/types.h:38: error: expected '=', ',', ';', 'asm' or
'__attribute__
' before 'gid16_t'
include/linux/types.h:44: error: expected '=', ',', ';', 'asm' or
'__attribute__
' before 'old_uid_t'
include/linux/types.h:45: error: expected '=', ',', ';', 'asm' or
'__attribute__
' before 'old_gid_t'
include/linux/types.h:57: error: expected '=', ',', ';', 'asm' or
'__attribute__
' before 'loff_t'
include/linux/types.h:66: error: expected '=', ',', ';', 'asm' or
'__attribute__
' before 'size_t'
include/linux/types.h:71: error: expected '=', ',', ';', 'asm' or
'__attribute__
' before 'ssize_t'
include/linux/types.h:76: error: expected '=', ',', ';', 'asm' or
'__attribute__
' before 'ptrdiff_t'
include/linux/types.h:81: error: expected '=', ',', ';', 'asm' or
'__attribute__
' before 'time_t'
include/linux/types.h:86: error: expected '=', ',', ';', 'asm' or
'__attribute__
' before 'clock_t'
include/linux/types.h:91: error: expected '=', ',', ';', 'asm' or
'__attribute__
' before 'caddr_t'
include/linux/types.h:109: error: expected '=', ',', ';', 'asm' or
'__attribute_
_' before 'u_int8_t'
include/linux/types.h:110: error: expected '=', ',', ';', 'asm' or
'__attribute_
_' before 'int8_t'
include/linux/types.h:111: error: expected '=', ',', ';', 'asm' or
'__attribute_
_' before 'u_int16_t'
include/linux/types.h:112: error: expected '=', ',', ';', 'asm' or
'__attribute_
_' before 'int16_t'
include/linux/types.h:113: error: expected '=', ',', ';', 'asm' or
'__attribute_
_' before 'u_int32_t'
include/linux/types.h:114: error: expected '=', ',', ';', 'asm' or
'__attribute_
_' before 'int32_t'
include/linux/types.h:118: error: expected '=', ',', ';', 'asm' or
'__attribute_
_' before 'uint8_t'
include/linux/types.h:119: error: expected '=', ',', ';', 'asm' or
'__attribute_
_' before 'uint16_t'
include/linux/types.h:120: error: expected '=', ',', ';', 'asm' or
'__attribute_
_' before 'uint32_t'
include/linux/types.h:123: error: expected '=', ',', ';', 'asm' or
'__attribute_
_' before 'uint64_t'
include/linux/types.h:124: error: expected '=', ',', ';', 'asm' or
'__attribute_
_' before 'u_int64_t'
include/linux/types.h:125: error: expected '=', ',', ';', 'asm' or
'__attribute_
_' before 'int64_t'
include/linux/types.h:180: error: expected '=', ',', ';', 'asm' or
'__attribute_
_' before '__le16'
include/linux/types.h:181: error: expected '=', ',', ';', 'asm' or
'__attribute_
_' before '__be16'
include/linux/types.h:182: error: expected '=', ',', ';', 'asm' or
'__attribute_
_' before '__le32'
include/linux/types.h:183: error: expected '=', ',', ';', 'asm' or
'__attribute_
_' before '__be32'
include/linux/types.h:185: error: expected '=', ',', ';', 'asm' or
'__attribute_
_' before '__le64'
include/linux/types.h:186: error: expected '=', ',', ';', 'asm' or
'__attribute_
_' before '__be64'
include/linux/types.h:188: error: expected '=', ',', ';', 'asm' or
'__attribute_
_' before '__sum16'
include/linux/types.h:189: error: expected '=', ',', ';', 'asm' or
'__attribute_
_' before '__wsum'
include/linux/types.h:197: error: expected '=', ',', ';', 'asm' or
'__attribute_
_' before 'resource_size_t'
include/linux/types.h:201: error: expected specifier-qualifier-list before
'__ke
rnel_daddr_t'
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2

how can i fix this,  any one has an idea?
thanks in advance.

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: 

2. file transfer using usb to windows pc from android kernel

I can't think of any way you can transfer a file from the device to
the host without having an application running on the host that
initiates a USB connection to the device and waits for the device to
send it data.  Or am I misunderstanding your question?

Mike








-- 
Mike Lockwood
Google android team

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: 

3. How to customize background drawable for Gallery in android

4. Go to the home screen

5. Simplifying the downloading XML or .txt files

6. buffer passing in opencore/omx

7. How to show a link text, when clicks on it, it shows a web view