开发者

Standard Swipe Fling?

I hav开发者_JS百科e a GestureDetector to capture onFling events. Now I'm just using if velocityX > 150... then right to left swipe, it's a bit subjective and doesn't work all that well. I was wondering if there was a system standard for detecting right->left and left->right swipe flings?


You can try using the default ViewConfiguration setting.

final ViewConfiguration configuration = ViewConfiguration
        .get(getContext());

mMinimumVelocity = configuration.getScaledMinimumFlingVelocity();
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜