Android default action views decoration
Common default action views get a decoration implicitly based on Android standards.
On Androidâ„¢ devices, when the IMAGE
and the TEXT
action attributes are not
defined for an action, the default action view gets an implicit decoration.
The default icon is selected from the name of the action. The symbol is chosen from the built-in images (i.e. Android material design icons), if it has the same name as the action. If no icon corresponds, the default action view will get no icon.
The text defaults to the name of the action, converted to uppercase. The text displays only if the Android system considers that the screen is large enough to display the texts. Typically, texts are shown on tablets, but not on smartphones with small/medium screens.
For example, when implementing a ON ACTION refresh
handler, GMA will
implicitly use the default icon with the name "refresh" (the typical circular refresh
symbol), and, if there is enough room, display the text "REFRESH" on the right of the
icon.
Position and rendering of default action views can be controlled with Android specific style attributes. For more details, see Default action view style attributes.
Not also that some actions can be rendering as the Floating Action Button of material design, as described in Android floating action button.
Default actions views displayed in the top control bar and in the overflow button will get a text but no icons, while the FAB material design button will get an icon but no text.
Action name | Icon |
---|---|
about |
|
accept |
|
append |
|
attention |
|
bell |
|
calendar |
|
camera |
|
cancel |
|
copy |
|
cut |
|
delete |
|
diropen |
|
edit |
|
editcopy |
|
editcut |
|
editpaste |
|
exit |
|
file |
|
filenew |
|
filter |
|
find |
|
findnext |
|
first |
|
firstrow |
|
forwind |
|
help |
|
hint |
|
insert |
|
interrupt |
|
last |
|
lastrow |
|
next |
|
nextrow |
|
new |
|
paste |
|
prev |
|
previous |
|
prevrow |
|
query |
|
rewind |
|
update |