Rect rect = new Rect();
mBt0.getHitRect(rect);
rect.bottom += 400; TouchDelegate touchDelegate = new TouchDelegate(rect, mBt0); if (View.class.isInstance(mBt0.getParent()))
{
((View) myButton.getParent()).setTouchDelegate(touchDelegate);
}
限制:
.只能改变一个子View的点击范围,重复设置会覆盖;
.扩大的点击范围不会超出 父View的范围