比较让人吐血的问题。在使用android:layout_toLeftOf android:layout_toRightOf 时 明明已经指定了已定义的ID 检查N遍,但就是提示所使用ID未定义。
解决:在使用android:layout_toLeftOf android:layout_toRightOf 时所使用控件的位置一定要在LEFT RIGHT使用之前 。。
本文介绍了一个常见的Android布局问题——当使用android:layout_toLeftOf和android:layout_toRightOf属性时,即使已经正确指定了ID,仍可能出现找不到指定ID的情况。文章提供了简单有效的解决方案。
比较让人吐血的问题。在使用android:layout_toLeftOf android:layout_toRightOf 时 明明已经指定了已定义的ID 检查N遍,但就是提示所使用ID未定义。
解决:在使用android:layout_toLeftOf android:layout_toRightOf 时所使用控件的位置一定要在LEFT RIGHT使用之前 。。

被折叠的 条评论
为什么被折叠?