I have a layer(base layer) upon which there are several buttons. At times I would like show modal dialogue boxes on a translucent layer, which when displayed, the user should not be able to click on anything below translucent layer - ie. they should not be able to click on the buttons on the base layer.
So how to get a layer to absorb all these touches ? Right now if I click anywhere on the translucent layer, and there is a button on the layer below, the button gets clicked? Is there some flag that must be set ?
You can add touch listener for your layer.