For most of the layout building I'm using the design mode (and in my opinion you should as well since it's going to be much easier). That means that depending on how you move your views, the original position and many more the attributes that the editor will add can vary a bit. In my CardView for instance there's a app:layout_constraintVertical_bias="0.0" attribute added which you may end up not having; that's fine! Just make sure there are no warnings or errors showing up in the editor and that you're happy with the result.