Esta página fue traducida automáticamente del portugués y puede contener errores. La versión en portugués es la canónica.
Enums y constantes de UIConstants
UIConstants es el hub de enums, constantes y tipos compartidos. Como Component/Layout/Styles
implementan UIConstants, esos nombres quedan accesibles sin import calificado dentro de ellos.
Valores verificados contra el código fuente (API 2026).
Layout y posición
| Enum | Valores |
|---|---|
Position |
START · CENTER · END |
Orientation |
HORIZONTAL · VERTICAL |
ScreenSize |
SIZE (dimensión real) · MIN (lado menor) · MAX (lado mayor) |
RelPos |
AUTOPOS · AUTOPOSCENTERED · START · CENTER · END · BEFORE · SAMEPOS · AFTER · CENTER_OF · END_OF · KEEPPOS |
RelSize |
AUTOSIZE · FILL · FIT · SAMESIZE · KEEPSIZE |
Transition |
NONE · FADE · SLIDE_LEFT · SLIDE_RIGHT · SLIDE_UP · SLIDE_DOWN · SCALE · SCALE_DOWN |
Apariencia
| Enum | Valores |
|---|---|
ImageSize |
ORIGINAL · RATIO · STRETCH · FIT · FIT_WIDTH · FIT_HEIGHT · FIT_HALF_WIDTH · FIT_HALF_HEIGHT |
LineStyle |
SOLID · DOTTED |
Pressable |
NO · YES · STICKY |
Entrada de texto
| Enum | Valores |
|---|---|
EditMode |
NORMAL · DATE · CURRENCY · NUMERIC · TIME · PASSWORD |
Capitalise |
NORMAL · UPPER · LOWER |
Keyboard |
NONE · DEFAULT · NUMERIC · KEYPAD · CALCULATOR · DATE · TIME |
EditMode.getKeyboard()mapea el modo al teclado implícito (DATE→DatePicker,CURRENCY→Keypad calculadora,TIME→TimePicker, etc.). Ver Máscaras y teclados.
Constantes no-enum
| Constante | Valor | Uso |
|---|---|---|
LAY_AUTO |
0f |
tamaño natural del contenido (en add()) |
LAY_FILL |
-1f |
rellena el espacio restante (en add()) |
Los colores siguen siendo int ARGB — las constantes de color y utilidades están en UIConstants/Styles y
ColorUtils (ver Colores y las Hojas de referencia rápida).
Tipos anidados (interfaces funcionales / marcadores)
UIConstants también anida los contratos compartidos: Action (run(Component)), Paintable,
Icon, Scrollable, Checkable, TextComponent, TextInputComponent. Por eso
aparecen como UIConstants.Action etc. (la migración 2026 los movió dentro de UIConstants).