I'm developing an android application for restaurant table booking. I need to draw dynamic squares using coordinates. I had used view class to draw rectangle on canvas but couldn't make the canvas rectangle clickable. can someone help me with this?