Presentation styles / Style attributes reference |
These style attributes apply to default action views (MenuAction and Action classes).
Attribute | GDC | GWC-JS | GMA | GMI |
---|---|---|---|---|
androidActionPosition On Androidâ„¢, defines if the option corresponding to the action must be displayed in the menu bar. Values can be:
Note: See also Default action views decoration on Android devices.
|
N/A | N/A | Yes | N/A |
androidActionWithIcon On Android, defines if the icon (default icon or icon specified with the IMAGE attribute) must be displayed for the action view. Values can be:
|
N/A | N/A | Yes | N/A |
androidActionWithText On Android, defines if a label (specified with the TEXT attribute) must be displayed for the action view. Values can be:
Note: If the device orientation is in portrait mode,
Android may not display the text, even if you force it with this
attribute.
|
N/A | N/A | Yes | N/A |
scaleIcon Defines the scaling behaviors of the associated icon, if the source image size is bigger than the place reserved for it in the widget. Note: On GDC and GWC, if the scaleIcon attribute is
undefined, the behavior depends on the kind of action view:
toolbar button icons and action panel button icons are scaled
down to match the size of the widget. For other widgets, by
default no scaling occurs, as for
scaleIcon="no".
Values can be:
Independently of the style value, the source image is never upscaled to avoid pixelization or blurring of the image. The exception is when the image come from an SVG file which can be upscaled without any penalty. If the icon must be enlarged, the image is centered and a transparent border is added to "fill" the empty space. This allows a mix of larger and smaller icons while keeping widget alignment. If scaling takes place, the aspect ratio of the original image is kept. A non-square source image displays as a non-square scaled icon. |
Yes | Yes | No | No |