I have red and green LinearLayouts, and I set ontouch listeners to them.
When I touch the green one its turns to white (no problem so far) When I touch the red one it is also turning to white (no problem so far)
The problem is when I touch the green one and I drag my finger over the red one (meaning I do not release the finger I just move it over the red one) then in this kind of scenarion only the green one go to white but not the red one.
I hope I describe good, if you do not get my problem please ask me.
Thanks for the help
green.setOnTouchListener(new OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
// TODO Auto-generated method stub
v.setBackgroundColor(Color.WHITE);
return true;
}
});
red.setOnTouchListener(new OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
// TODO Auto-generated method stub
v.setBackgroundColor(Color.WHITE);
return true;
}
});