What does “baseline” refer to when used in the context of a relative layout? Simple question, probably, but the documentation and google offer no hints.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The term baseline comes from typography. It’s the invisible line letters in text sit on.
For example, imagine you put two
TextViewelements next to each other. You give the secondTextViewa big padding (say 20dp). If you addlayout_alignBaselineto the second element, the text will “scoot up” to align with the baseline of the first element. The text from both elements will appear as if they were written on the same invisible line.