Suresh Sharma
Suresh Sharma

Reputation: 1844

How to keep some part of the Canvas NOT Touchable

All i need to do is to create a canvas with some non-touchable Section. I tried with an overlay (Relative layout) over the canvas at desired place. But Canvas is still touchable. I have no clue why this is happening.

Can anybody tell me how can i make some part of Canvas is not touchable.

Upvotes: 0

Views: 114

Answers (1)

MarmiK
MarmiK

Reputation: 5775

if logical solution required,

Just catch touch event, >> find location of event,

If Location is within non-touchable area, return false, else true.

I think this will help. :)

Upvotes: 2

Related Questions