本文整理了Java中android.view.SurfaceView.onTouchEvent()
方法的一些代码示例,展示了SurfaceView.onTouchEvent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SurfaceView.onTouchEvent()
方法的具体详情如下:
包路径:android.view.SurfaceView
类名称:SurfaceView
方法名:onTouchEvent
暂无
代码示例来源:origin: Bilibili/DanmakuFlameMaster
@Override
public boolean onTouchEvent(MotionEvent event) {
boolean isEventConsumed = mTouchHelper.onTouchEvent(event);
if (!isEventConsumed) {
return super.onTouchEvent(event);
}
return isEventConsumed;
}
代码示例来源:origin: wobiancao/RtspServerAndVlcPlay
@Override
public boolean onTouchEvent(MotionEvent ev) {
return super.onTouchEvent(ev);
}
代码示例来源:origin: ymcao/YaPlayer
@Override
public boolean onTouchEvent(MotionEvent ev) {
return super.onTouchEvent(ev);
}
代码示例来源:origin: mrmaffen/vlc-android-sdk
@Override
public boolean onTouchEvent(MotionEvent ev) {
return super.onTouchEvent(ev);
}
代码示例来源:origin: derry/delion
@Override
public boolean onTouchEvent(MotionEvent e) {
return super.onTouchEvent(e);
}
代码示例来源:origin: pedroSG94/vlc-example-streamplayer
@Override
public boolean onTouchEvent(MotionEvent ev) {
return super.onTouchEvent(ev);
}
代码示例来源:origin: klinker24/Android-Blur-Launcher
@Override
public boolean onTouchEvent(MotionEvent event) {
if (state == STATE_B1_W && event.getAction() == MotionEvent.ACTION_DOWN) {
state++;
circles[0].startTime = System.currentTimeMillis() - (long) (1.04017 * circles[0].bounceTime * 1000);
} else if (state == STATE_B2_W && event.getAction() == MotionEvent.ACTION_DOWN) {
state++;
circles[1].startTime = System.currentTimeMillis() - (long) (1.04017 * circles[1].bounceTime * 1000);
} else if (state == STATE_B3_W && event.getAction() == MotionEvent.ACTION_DOWN) {
state++;
circles[2].startTime = System.currentTimeMillis();
}
return super.onTouchEvent(event);
}
代码示例来源:origin: Yuphee/RecordVideo
@Override
public boolean onTouchEvent(MotionEvent event) {
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN:
if (mCamera.getParameters().isZoomSupported() && event.getDownTime() - mLastTouchDownTime <= DOUBLE_CLICK_INTERVAL) {
zoomPreview();
}
mLastTouchDownTime = event.getDownTime();
// float x = event.getX();
// float y = event.getY();
// autoFocus();
// 手动对焦,还存在问题
// Rect focusRect = calculateTapArea(x, y, 1f);
// List<Camera.Area> focusAreas = new ArrayList<>();
// focusAreas.add(new Camera.Area(focusRect, 1000));
//
// Rect meteringRect = calculateTapArea(x, y, 1.5f);
// List<Camera.Area> meteringAreas = new ArrayList<>();
// meteringAreas.add(new Camera.Area(meteringRect, 1000));
// manualFocus(mCamera,callback,focusAreas,meteringAreas);
break;
}
return super.onTouchEvent(event);
}
代码示例来源:origin: Gamelab-Istanbul/NgdroidApp
break;
return super.onTouchEvent(event);
内容来源于网络,如有侵权,请联系作者删除!