I want to avoid null pointer exception for the following.
I want to disable touch listener for a relative layout.
private RelativeLayout container ;
container.setOnTouchListener(null);
Thank you
I want to avoid null pointer exception for the following.
I want to disable touch listener for a relative layout.
private RelativeLayout container ;
container.setOnTouchListener(null);
Thank you
Disable your RelativeLayout so that touch events never triggered .Use
container.setEnabled(false);