Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b6b942a

Browse files
committed
勘误
1 parent 73e0c86 commit b6b942a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎CustomView/Advance/[19]gesture-detector.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,9 @@ public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float
274274

275275
##### 2.3.5 onShowPress
276276

277-
它在用户按下时就会回调,主要作用是给用户提供一种视觉反馈,其实它就是对 down 事件对一种回调,在监听到这种事件时可以让控件换一种颜色,或者产生一些变化,告诉用户他的动作已经被识别。
277+
它是用户按下时的一种回调,主要作用是给用户提供一种视觉反馈,可以在监听到这种事件时可以让控件换一种颜色,或者产生一些变化,告诉用户他的动作已经被识别。
278+
279+
不过这个消息和 onSingleTapConfirmed 类似,也是一种延时回调,延迟时间是 180 ms,假如用户手指按下后立即抬起或者事件立即被拦截,时间没有超过 180 ms的话,这条消息会被 remove 掉,也就不会触发这个回调。
278280

279281
```java
280282
@Override

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /