开发者

Android button tap slop region

开发者 https://www.devze.com 2023-01-08 04:20 出处:网络
In android, when I press and hold in a button, then move the pointer outside the button, the button un-highlights.But I have to move it significantly outside the 开发者_StackOverflow中文版button; just

In android, when I press and hold in a button, then move the pointer outside the button, the button un-highlights. But I have to move it significantly outside the 开发者_StackOverflow中文版button; just a few pixels isn't enough. And the slop seems to be wider than it is tall. What are the values of the slop dimensions? Where can I find them?


The values, by experimentation, appear to be SLOP_X = 24 and SLOP_Y = 0. Not real sure about the Y slop; scroll sensitivity is involved and it gets a little weird.

0

精彩评论

暂无评论...
验证码 换一张
取 消