Skip to main content

textAlign

Type​

property

Summary​

The horizontal text alignment of the field widget.

Syntax​

set the textAlign of <widget> to <pAlign>
get the textAlign of <widget>

Description​

Use the textAlign property to change the horizontal text alignment of the field widget.

Examples​

set the textAlign of widget "Android Field" to "center"

Value​

NameTypeDescription

value

  • "left": Left-aligned text
  • "center": Center-aligned text
  • "right": Right-aligned text

Compatibility and Support​

OS

android