0

This is my activity layout in android studio:

ConstraintLayout1
-   LinearLayout1
    -   Button1
    -   Button2
-   ConstraintLayout2
-   ConstraintLayout3
    -   Button3
-   Button4

When I modify the background property of ConstraintLayout1, the layout changes automatically.

ConstraintLayout1
-   Button4
-   LinearLayout1
    -   Button1
    -   Button2
-   ConstraintLayout2
-   ConstraintLayout3
    -   Button3

Button4 automatically becomes the first in the root component tree.

My android studio version is 3.6.1, how to solve this problem.

qimi
  • 1
  • I'm not sure if I'm following the observed changes correctly, but perhaps it's [this old XML refactoring issue](https://stackoverflow.com/q/57591080), which I just recently had pop up on me again, too. – Mike M. May 12 '20 at 14:21
  • 1
    @MikeM.Thank you. This solved my problem. – qimi May 14 '20 at 06:45

0 Answers0