Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问多选如何实现 #17

Closed
wangyutao opened this issue Feb 19, 2019 · 1 comment
Closed

请问多选如何实现 #17

wangyutao opened this issue Feb 19, 2019 · 1 comment

Comments

@wangyutao
Copy link

手指画一个区域,把这个区域内的对象全部选中,可以做移动或者缩放操作,请问支持吗?或者如何扩展,请大神指导,多谢

@1993hzw
Copy link
Owner

1993hzw commented Feb 19, 2019

DoodleOnTouchGestureListener可以参考这个类的实现,这里面包含单选,理解逻辑后,多选其实也差不多原理.
最后自己自定义个手势识别器传给Doodle框架.
// create touch detector, which dectects the gesture of scoll, scale, single tap, etc. // 创建手势识别器,识别滚动,缩放,点击等手势 IDoodleTouchDetector detector = new DoodleTouchDetector(getApplicationContext(), mTouchGestureListener); mDoodleView.setDefaultTouchDetector(detector);

@1993hzw 1993hzw closed this as completed Feb 19, 2019
@chgmxx chgmxx mentioned this issue Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants