Documentation
¶
Overview ¶
Command pressprobe shows the press feedback of Button and IconButton (#1085) on a device, for a screen recording.
The top row holds a Button of each importance, one with an icon, and two IconButtons. Below them, a scrolling list of buttons checks that a touch that turns into a scroll leaves no pressed state behind and taps nothing. Every tap logs
pressprobe: TAP <label>
Expected, with the change: a press shows a state layer that spreads from the finger while it is down, and finishes and fades after the lift, so a quick tap still shows it. A scroll that starts on a list button cancels its press and logs no TAP. Before #1085 a tap showed a faint ripple only after the lift.
go run ./hack/pressprobe
On Android, package it and read logcat for "pressprobe".