I'm using a guideline to split the screen between two views in a certain point. I also need to put a CardView centralized to this same point. I constrained the CardView Top and Bottom line to the same point, the guideline, because it makes sense.
It seems to work, but I couldn't find any reference to this approach and also I found some examples using a different one: making a slightly bigger view to wrap the main view, and then aligning the bottom of the CardView to the bottom of this bigger view. Something like this:
<View
height="X+Y">
<View
id="@+id/view"
height="X">
</View>
<CardView
height="2Y"
bottom_toBottomOf="view"/>
</View>
So my question is: is it really supposed to work, or it just happens to work in my emulator?

