Adding multiple touch listeners inside canvas Android
问题 Suppose I have multiple drawings in my canvas, how can I add touch listener for each of the drawings seperately inside that canvas? I will be having different drawings like star, circle, rectangle etc etc added dynamically how can I handle each of them ? I couldn find ans in SO the very close question was this Set touch listeners on canvas drawings but it has no ans. Help and suggestions will be appreciated. Thanks in advance :) 回答1: Actually you can't add any touch listener on the drawings