<tap>
InteractiveWallpaper
Invisible tap region wrapping children. Any child becomes tappable. Runs a tap action on widgets; wallpapers draw the children without interaction.
Example
<tap action="openApp" app="com.google.android.deskclock"><text>Open Clock</text></tap>Attributes
| Name | Type | Default | Description |
|---|---|---|---|
action | String | — | Tap action. Parameters are extra attributes named by the action. |
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) |
gap | Dp | — | Space between children |
padding | Dp | — | Inner padding (single or top/right/bottom/left) |
background | Color | — | Background color |
gradient | String | — | Gradient brush: linear(...), radial(...), sweep(...) |
radius | Dp | — | Corner radius |
align | String | start | Cross-axis alignment (column/row) or self-alignment within parent (box). |
justify | String | start | Main-axis distribution. |
fillMaxWidth | Boolean | false | Fill available width |
fillMaxHeight | Boolean | false | Fill available height |
flex | Float | — | Flex weight for parent distribution |
opacityWallpaper only | Float | 1.0 | Opacity (0.0–1.0) |
rotateWallpaper only | Float | — | Rotation in degrees, clockwise around the element's centre. Takes expressions, e.g. "{dt:minuteAngle}" for a clock hand. |
scaleWallpaper only | String | — | Uniform scale factor, or 'sx,sy' for axis-specific |
offsetWallpaper only | String | — | Translation 'x,y' in dp or % (e.g. '8dp,-4dp' or '10%,0%') |
blurWallpaper only | Dp | — | Blur radius (Dp) applied to the element and its children |
clipToBoundsWallpaper only | Boolean | false | Clip children that draw outside this element's bounds |
requiredWidthWallpaper only | Dp | — | Width that ignores the parent's constraints (Compose requiredWidth); use with a clipped parent |
requiredHeightWallpaper only | Dp | — | Height that ignores the parent's constraints (Compose requiredHeight); use with a clipped parent |
animateWallpaper only | String | — | Animation preset shorthand, e.g. "pulse:2s", "breathe:4s", "spin:8s", "bob:3s:8dp", "sway:4s:6", "fade:3s:0.3:1", "shimmer:2s". Reads the shared animation clock so all animated elements stay phase-locked. |
refreshWallpaper only | String | — | Update rate for this element and its children, independent of the root updateFrequency: "frame" re-evaluates every animation frame (a sweeping second hand bound to {dt:secondAngleSmooth}); "500ms", "1s", "1m" run their own tick. |
transitionWallpaper only | String | — | One-shot animation played when the content changes: "<preset>[:duration][:delay]", e.g. "fade:300ms" or "flipTop:300ms". The change is detected on transitionKey, or on the text for <text>. |
transitionKeyWallpaper only | String | — | Expression whose value triggers the transition when it changes, e.g. "{dt:minute}" |
overlayVisible | Boolean | false | Keep this element visible when the widget renders in overlay mode (default: hidden, the wallpaper draws it) |