Touch screen, returns the x, y position and touch effect.







Converts between DP (Density-independent Pixels) and PX (Physical Pixels) using the device's display density (DPI) to maintain visual consistency across different displays.
-
On different devices:
-
MDPI (160 DPI): 50dp = 50px, 25dp = 25px
-
HDPI (240 DPI): 50dp = 75px, 25dp = 38px
-
XHDPI (320 DPI): 50dp = 100px, 25dp = 50px
-
XXHDPI (480 DPI): 50dp = 150px, 25dp = 75px
-
EnableTouch
Starts listening for screen touches and creates effects.
DisableTouch
Disables the touch overlay.
StartInfinite
Starts infinite effect at specified coordinates with specified unit.
Unit:
- dp = App Pixels
- px = Device Pixels
StopInfinite
Stops the infinite effect.
ShowEffectAt
Creates a single effect at the specified coordinates with specified unit.
Unit:
- dp = App Pixels
- px = Device Pixels
InfiniteInterval
Sets the interval between effects in infinite mode (milliseconds).
Color
Sets the effect color.
Size
Sets the size of the effect.
Duration
Sets the duration of the effect animation in milliseconds.
EffectType
Sets the current effect type.
Options: Ripple, Particles, Rings, Spiral, Bubble DigitalRain, Snow, SnowDetailed.
Touched
Triggered when the screen is touched. Returns coordinates in both pixels (px) and density-independent pixels (dp).
ScreenDPI
Returns the screen density in DPI.

DensityScale
Returns the screen density scale factor.
WidthDevicePixels
Returns screen width in pixels.
HeightDevicePixels
Returns screen height in pixels.
WidthAppPixels
Returns screen width in density-independent pixels (dp).
HeightAppPixels
Returns screen height in density-independent pixels (dp).
v1.3 Oct 25, 2025.
Update:
-
Changed property, function, and event names from
pxtodevice pixelsanddptoapp pixels. -
New effects added:
- Spiral
- Bubble
- DigitalRain
- Snow
- SnowDetailed
ScreenTouchEffects.aia (122.9 KB)
joejsanz.joedevscreentoucheffects.aix (20.8 KB)
JDK: 11
Minimum API Level: 21
Updated On: 2025-10-25T07:00:00Z
Built using: FAST-CLI v5.2.2-premium
Thanks.






















