'Android: Remove padding around text with autoSize and ConstraintLayout
I'm developing an Android WearOS application, with the following layout:
However, there is a lot of white space around the text, which is unfortunate given the small size of the screen. I want to maximize the text size.
I've already disabled includeFontPadding, but there still is a lot of space left. How can I completely eliminate the whitespace at the top and bottom of each label, whilst still having a fully responsive layout, that is work on both square, and round screens and scale the text size based on the available space on the screen?
Currently, the height of each label is set by a percentage. E.g. the main label in the center takes 40 percent of the available height via the XML setting app:layout_constraintHeight_percent.
I've seen similar questions about this (constraintlayout baseline to baseline with autosize and Android: TextView: Remove spacing and padding on top and bottom), but none of the solutions seem to work correctly with autoSize and ConstraintLayout together.
Any help is appreciated!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

