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 descenders instead of using the font ascent and descent strictly.
Questions:
- What does the above mean? What is this padding used for?
- Is it bad to turn it off and why?
来源:https://stackoverflow.com/questions/35680999/what-is-androidincludefontpadding-for