@+id/foo means you are creating an id named foo in the namespace of your application. You can refer to it using @id/foo.

@android:id/foo means you are referring to an id defined in the android namespace. This namespace is the namespace of the framework. In this case, you need to use @android:id/list and @android:id/empty because these are the id the framework expects to find (the framework knows only about the ids in the android namespace.)

The XML layout editor doesn't know how you will use your layout and generates by default ids that are in your application namespace. So the XML format is correct, it's not a compile time error, but really a runtime error.

http://groups.google.com/group/android-developers/browse_thread/thread/dc8023b221351aa7?pli=1

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. Android之网络丢包事件
  2. 使用android--建立第一个APP程序
  3. Android(安卓)使用 OpenCV (JNI 实现)
  4. android 屏幕适配
  5. android 微信登录与分享集成
  6. Android(安卓)Makefile分析
  7. Mac下配置Android(安卓)NDK环境并搭建Coc
  8. 小胖加入Android(安卓)Fans的 大军了 呵
  9. 在android 下支持ntfs-3g
  10. Android内核开发:源码的版本与分支详解