I have two relative layouts. One is main page and the other is slider menu which is hidden by default. when I open second layout it comes over the main layout, but the problem is. I have some button in slider menu which are clickable. If i click on that click event happens for that but also click event is occuring for main view's button if button is exactly behind slid view's button. How can i make sure that behind view gets disabled? similar like z-index in HTMLI have two relative layouts. One is main page a