Among all the ConstraintLayout attributes available in Android Studio 2.2, there are these two Bottom constrains and a Baseline constrain:
layout_constraintBottom_toTopOf
layout_constraintBottom_toBottomOf
layout_constraintBaseline_toBaselineOf
And it seems that not every view has baseline.
What's the difference and similarities between Bottom and Baseline constrain? Why do only certain views have a Baseline?
The official documentation lacks this kind of information.
EDIT
This image helps to understand baseline vs base:
Baseline is used for make view bottom to bottom of text
for example in EditText the text is not the bottom so if you use baseline it will be in bottom of
EditText's text not EditText's view
more info from android developer training official website
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With