@+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. Svg标签跟学习
  3. Android Activity生命周期和状态
  4. android 多个按钮中一个高亮
  5. android 多线程实现方式、并发与同步学习
  6. Android(安卓)属性动画与硬件加速
  7. SQlite数据库(4)---DAO(data access obje
  8. android 获得所有安装的软件信息
  9. Android 获取手机(ios,android)的设备唯一码
  10. Android中在Button文本上添加图片