android - How to set onclicklistener to Drawable on canvas? -
i not have imageview,i have drwable , draw on canvas this:
drawable.draw(canvas);
how can set onclicklistener drawable ? use project : https://code.google.com/p/android-multitouch-controller/
(i want use on click listener because want remove drawable on canvas) in advance.
a drawable not have facility receive events or otherwise interact user. it's visual response far android os concerned , used fetched resource.
you might better off creating view. override
ondraw(android.graphics.canvas)
but if must, consider getbounds in endeavours.
Comments
Post a Comment