小编Avt*_*ngh的帖子

在Android中连续"Action_DOWN"

@Override
public boolean onTouchEvent(MotionEvent event) {

if(event.getAction()==MotionEvent.ACTION_DOWN){
Log.d(VIEW_LOG_TAG, "Touching Down");
}
    if(event.getAction()==MotionEvent.ACTION_UP){
Log.d(VIEW_LOG_TAG, "Not Touching");
}
}
Run Code Online (Sandbox Code Playgroud)

我想要Log - >"Touching Down"应该连续显示在Log中,直到释放手指.

请帮忙

它真的很重要......我不能在没有这个的情况下继续进行ma项目.

android touch ontouchlistener

2
推荐指数
1
解决办法
2532
查看次数

标签 统计

android ×1

ontouchlistener ×1

touch ×1