且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

循环依赖不能RelativeLayout的存在,机器人?

更新时间:2023-11-19 08:09:40

该问题是因为有一个在布局参数的循环引用。

The problem is caused because there is a circular reference in the layout parameters.

例如,当认为B是layout_below视图A,视图A不能引用视图B再在它的下方,alignRight等,这也可以在多个视图之间存在:A引用b号C.在这种情况下C能'由于循环依赖叔参考。

For example, when view B is layout_below view A, view A can't reference view B anymore in it's below, alignRight etc. This can also exist between multiple views: A references B references C. In that scenario C can't reference A because of a circular dependency.

您使用: -

bottomLinearLayout低于scrollView1 然后你说,scrollView1高于bottomLinearLayout

bottomLinearLayout is below scrollView1 And then you said that scrollView1 is above bottomLinearLayout

忽略了最低位这样的。 使用一个

It dosen't work like that. Use one