后面的引用控件是@+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"
解决 无用评论 打赏 举报
悬赏问题
- ¥100 Jenkins自动化部署—悬赏100元
- ¥15 关于#python#的问题:求帮写python代码
- ¥20 MATLAB画图图形出现上下震荡的线条
- ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
- ¥15 perl MISA分析p3_in脚本出错
- ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
- ¥15 ubuntu虚拟机打包apk错误
- ¥199 rust编程架构设计的方案 有偿
- ¥15 回答4f系统的像差计算
- ¥15 java如何提取出pdf里的文字?