What is the purpose of baselineAligned?

Asked

Viewed 237 times

3

In the act of developing an application, I came across the following Warning:

Set android:baselineAligned="false" on this element for Better performance

What purpose of baselineAligned? When should I wear it?

  • 1

    http://stackoverflow.com/questions/9319916/how-does-setting-baselinealigned-to-false-improve-performance-in-linearlayout

2 answers

1


android:baselineAligned: When defined as false, prevents the layout from aligning your children’s baselines.

When you’re wearing one LinearLayout horizontal, the items are aligned by the position of their text line base (the first line of the first element of the list - top or left - is considered the reference line). This is to keep people from looking up and down when they are reading the text of the neighboring elements. To disable this property set android:baselineAligned=”false” in the XML layout.

-3

According to official documentation android:baselineAligned When set to false prevents the layout from aligning its children's baselines.

Found here.

  • 1

    Your answer would be more useful if you were translated into English.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.