<button>
InteractiveWallpaper
Tappable button with a text label. Runs a tap action on widgets; wallpapers draw it without interaction.
Example
<button action="refresh" style="filled">Refresh</button>Attributes
| Name | Type | Default | Description |
|---|---|---|---|
action | String | — | Tap action. Parameters are extra attributes named by the action. |
style | String | filled | Button style. |
color | Color | — | Button container color |
textColor | Color | — | Label color |
allDay | Boolean | — | All-day event (for newEvent) |
app | String | — | Package name, e.g. com.google.android.deskclock (for openApp) |
begin | String | — | Start: ISO date-time or epoch millis (for newEvent) |
body | String | — | Message text (for sms, email) |
category | String | — | Intent category (for intent) |
component | String | — | Component, e.g. com.example/.MainActivity (for openActivity) |
data | String | — | Data URI (for intent) |
date | String | — | today | yyyy-MM-dd | epoch millis (for openCalendar) |
end | String | — | End: ISO date-time or epoch millis (for newEvent) |
extras | String | — | Intent extras: key=value;key=value (for openActivity, intent) |
hour | Int | — | Hour 0–23 (for setAlarm) |
intentAction | String | — | Intent action, e.g. android.intent.action.VIEW (for intent) |
lat | Float | — | Latitude (for openMap) |
lon | Float | — | Longitude (for openMap) |
message | String | — | Alarm label (for setAlarm, setTimer) |
mimeType | String | — | MIME type (for intent) |
minute | Int | — | Minute 0–59 (for setAlarm) |
number | String | — | Phone number (for dial, sms) |
package | String | — | Restrict to this package (for intent) |
page | String | — | Page index, next or prev (for switchPage) |
query | String | — | Search terms (for search, openMap) |
screen | String | — | Target screen (for openAardflex) |
seconds | Int | — | Timer length in seconds (for setTimer) |
section | String | — | Settings section (for openSettings) |
skipUi | Boolean | — | Create silently without showing the clock app (for setAlarm, setTimer) |
subject | String | — | Subject (for email, share) |
text | String | — | Text to share (for share) |
title | String | — | Event title (for newEvent) |
to | String | — | Recipient address (for email, navigate) |
url | String | — | http(s) URL (for openUrl) |
var | String | — | Variable name (for toggle) |
overlayVisible | Boolean | false | Keep this element visible when the widget renders in overlay mode (default: hidden, the wallpaper draws it) |