I would like to create a layout like in the image. He did not turn it on, so the code is very long. I want to create a layout for each BOX and include it in the main layout, one below the other.

The problem is that the XML file layout of this type is very long. Therefore, I would like to use a layout and create a new layout, which will then include, for example:
I have a RelativeLayout and I have an ImageView for row1, below I want to create a window in this method to reduce the code:
<include layout = "box1"
layoutBelow = "linea1"
/>
And the same for field 2:
<include layout = "box2"
layoutBelow = "linea2"
/>
But the layout that I include does not align as I would like. The layout is superimposed on the existing one.