在 Android studio 的可视化布局编辑器中,我原本的组件树结构为这样:
ConstraintLayout1
- LinearLayout1
- Button1
- Button2
- ConstraintLayout2
- ConstraintLayout3
- Button3
- Button4
当我修改 ConstraintLayout1 的 background 属性的时候,布局文件的层次结构会自动变为以下状态:
ConstraintLayout1
- Button4
- LinearLayout1
- Button1
- Button2
- ConstraintLayout2
- ConstraintLayout3
- Button3
Button变成了 ConstraintLayout1 下的第一个元素,请问这是什么原因导致的?
我的 Android studio 的版本为 3.6.1 。