如何在触摸视图中的特定坐标时发出动作 android

How to issue action when touch in specific coordinates on view android

大家好我正在开发应用程序,我有一个女孩和男孩的头像..如果他触摸头像中的特定坐标,我想发出像警报对话框这样的动作如何在不绘制的情况下做到这一点canvas?? 请帮忙!!

View YOUR_VIEW = findViewById(R.id.MY_VIEW);
YOUR_VIEW.setOnTouchListener(new View.OnTouchListener() {
    @Override
    public boolean onTouch(View v, MotionEvent event) {
        Log.i("Coordinates:", " X: " + String.valueOf(event.getX()) + " , Y: " + String.valueOf(event.getY()));
        return true;
    }
});