为什么在一些 APK 反编译代码中,View.dispatchTouchEvent() 中的 x,y 坐标为 0 甚至小于 0?

问题描述

这是一个 apk 的代码片段。谁能帮我弄清楚这段代码是什么意思?

private void e() {
        if(!this.D) {
            this.D = true;
            this.dispatchTouchEvent(MotionEvent.obtain(System.currentTimeMillis(),System.currentTimeMillis(),0f,0));
            this.postDelayed(new Runnable() {
                public void run() {
                    this.a.dispatchTouchEvent(MotionEvent.obtain(System.currentTimeMillis(),2,-20f,0));
                    this.a.dispatchTouchEvent(MotionEvent.obtain(System.currentTimeMillis(),1,0));
                }
            },5);
        }
    }

其中“this.a”是一个扩展AdapterView的类。 为什么 x 和 y 的坐标是 0 和 -20?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)