后面的引用控件是@+id还是@id呢 比如layout_below="@+id/xxx还是@id/xxx 但是用@id/xxx的话as渲染的时候提示Rendering Problems(eclipse中有+和没+都能渲染出来运行效果也是一样的)as中有+和没+号运行也一样 就是没+号的时候布局渲染提示有问题 但是在之前的学习中印象是没+号的 +号是创建id 没+号是引用其他控件啊 有没有大神解答一下啊
6条回答
- 取个名 2016-03-30 09:13关注
android:layout_width="match_parent"
android:layout_height="match_parent"><Button android:layout_toRightOf="@id/bu1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="dad"/> <Button android:id="@+id/bu1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="sad"/> </RelativeLayout> 这样写在as中没问题,但是在eclipse中两个按钮会重叠在一起,除非改为android:layout_toRightOf="@+id/bu1"
解决 无用评论 打赏 举报
悬赏问题
- ¥15 YoloV5 第三方库的版本对照问题
- ¥15 请完成下列相关问题!
- ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
- ¥15 求daily translation(DT)偏差订正方法的代码
- ¥15 js调用html页面需要隐藏某个按钮
- ¥15 ads仿真结果在圆图上是怎么读数的
- ¥20 Cotex M3的调试和程序执行方式是什么样的?
- ¥20 java项目连接sqlserver时报ssl相关错误
- ¥15 一道python难题3
- ¥15 牛顿斯科特系数表表示