I am confused about the difference between ConstraintLayout and RelativeLayout. Could someone please tell me the exact differences between them?
ConstraintLayout is to optimize the view hierarchy of your layouts by applying some rules to each view to avoid nesting.
Rules remind you of
RelativeLayout, for example setting the left to the left of some other view.
bias value that is used to position a view in terms of 0% and 100% horizontal and vertical offset relative to the handles (marked with circle). These percentages offers seamless positioning of the view across different screen densities and sizes.
app:layout_constraintHorizontal_bias="0.33" <!-- from 0.0 to 1.0 --> app:layout_constraintVertical_bias="0.53" <!-- from 0.0 to 1.0 -->
This is totally opinion based and my impression of