Skip to content Skip to sidebar Skip to footer

What Is Android:includefontpadding For?

You can use android:includeFontPadding='false' to get rid of the default padding in a TextView. Android docs say this about the attribute: Leave enough room for ascenders and desce

Solution 1:

This is need for text size measure in height. If you turn it off, text will be forced to be some height, otherwise it will calculate height of each line with ascenders and descenders.

enter image description here

Post a Comment for "What Is Android:includefontpadding For?"