Eclipse 里报 did you mean to use @+id instead of @+android:id? android:ideclipseandroid 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 android: id 这个是引用系统原有的,不知道你具体是怎么写的。 创建的一个例子的 4.2,2 ApiDemos,发现报错. <ProgressBar android:id="@+android:id/progress_small_title" style="?android:attr/progressBarStyleSmallTitle" android:layout_width="wrap_content" android:layout_height="wrap_content" />去掉android: 就OK. 你如果是要自己给它命名id的就不需要加上android前缀了。 android开头的属性是系统级的,你自己定义的控件使用:@+id的形式。 这个不是我自己定义的,是使用ApiDemo时系统自动生成的,上来就报错,不应该这样吧? 这个不是我自己定义的,是使用ApiDemo时系统自动生成的,上来就报错,不应该这样吧?这样,你自己定义它的id,然后获取这个view。 <ProgressBar android:id="@+id/progress_small_title" style="?android:attr/progressBarStyleSmallTitle" android:layout_width="wrap_content" android:layout_height="wrap_content" /> 仔细对比下 android:id="@+android:id/progress_small_title" 和 android:id="@+id/progress_small_title" 的区别。 请教关于添加应用程序的问题 Android 贪吃蛇 eclipse 源代码 安卓 sqlite中能建两张表吗》? 关于android的一个动画的实现 求推荐书籍,想深入了解ANDROID开发编程及内核 MediaRecorder如何从摄像头录制高于默认分辨率的录像? html5 geolocation 在android手机上误差很大 求大神推荐一个在线学习android的视频,价钱不要太贵啊。 求几书android开发方面的书箱。 NFC开发如何动态设置android:requireDeviceUnlock="false"属性 查询其他apk的数据库 我想做一个通过WIFI同步的应用
android:id="@+android:id/progress_small_title"
style="?android:attr/progressBarStyleSmallTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />去掉android: 就OK.
android:id="@+id/progress_small_title"
style="?android:attr/progressBarStyleSmallTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />