Photos Android mobile app
2016-08-23
1 0 0
no vote
Other
Earn points
private class ImageViewOnTouchListener implements OnTouchListener {
@Override
public boolean onTouch(View v, MotionEvent event) {
Switch (event.getAction () &MotionEvent.ACTION_MASK) {//take out here is event.getAction () returns the low eight bits of the value, MotionEvent.ACTION_MASK is 255,
case MotionEvent.ACTION_DOWN:
startPoint.set(event.getX(), event.getY());
break;
Case MotionEvent.ACTION_MOVE://during the move, the event will be triggered
@Override
public boolean onTouch(View v, MotionEvent event) {
Switch (event.getAction () &MotionEvent.ACTION_MASK) {//take out here is event.getAction () returns the low eight bits of the value, MotionEvent.ACTION_MASK is 255,
case MotionEvent.ACTION_DOWN:
startPoint.set(event.getX(), event.getY());
break;
Case MotionEvent.ACTION_MOVE://during the move, the event will be triggered
Click the file on the left to start the preview,please
!The preview only provides 20% of the code snippets, the complete code needs to be downloaded
Report
java
android
app
移动
照片
Related Source Codes
Android AOA Android Open Accessory Development Usi
0
0
no vote
Golang AOA Android Open Accessory HID Control
0
0
no vote
VPN source code accelerator
0
0
no vote
VPN source code
0
0
no vote
Springboot Campus Recruitment System
0
0
no vote
No comment