Skip to main content
Version: Next

Components with small dimensions on Android

If the height and width values of a component containing text are small, such as 30x30 pixels, the text may become invisible. To fix this, you can set the includeFontPadding property of the component to false. The components that can be affected are:

  • Label
  • Icon
  • TextView
  • Button
this.label.android.includeFontPadding = false;

There is another requirement specific to the Button component. One must set the padding property to 0 in order to make the text visible.

this.button.android.padding = 0;
this.label.android.includeFontPadding = false;