@Override
public boolean onTouch(View v, MotionEvent event) 
{
event。x y 通过坐标 得到点击下的控件对象
能否实现??}

解决方案 »

  1.   

    Rect frame = mTempRect;
    final int count = getChildCount();
    for (int i = count - 1; i >= 0; i--) {
    final View child = getChildAt(i);
    child.getHitRect(frame);
    if (frame.contains(x, y)) {
    return child;
    }
    }
      

  2.   

    没有直接点的方法??
    类似getcontrolbyposion()
      

  3.   

    问题是每个控件都有一个onTouch事件,何必用这个方法去找到哪个控件被touch呢?
      

  4.   

    不是有View参数吗所有的控件都 用一个listener侦听不行吗