two views ontouchlistener same area how to?
- by user553465
I have a two ImageView.
1.ImageView zomeImageMoveable : should zome in,out and moveable.
2.ImageView zomeImageFixed : show zome this is guide line.
i want this two views work same touch.
{
FrameLayout myFrmae = new FrameLayout(this.getContext());
myFrame.addView(zomeImageMoveable);
myFrame.addView(zomeImageFixed);
}
Case 1. below two ImageView have each listener ,but works only one.
Case 2. FrameLayout add OnTouchListener and forward. but it doesn't work
myFrame.setOnTouchListener(new OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
zomeImageMoveable.onTouchEvent(event);
zomeImageFixed.onTouchEvent(event);
return false;
}
});
how do i have to do?
thanks for reading.