How to set ontouch listener for something drawn using canvas: Android
I have a custom view in which i am drawing one big circle and a small circle on the edge of this big circle. I would like to move the small circle and so would like to have a ontouch listener only for the small circle. Could some please tell me how to set the ontouch listener for only the small circle. public class ThermoView extends View{ private ImageView mThermostatBgrd; private ImageView mCurTempArrow; private ImageView mSetPointIndicator; public static final int THEMROSTAT_BACKGROUND = 0; public static final int THEMROSTAT_CURR_TEMP = 1; public static final int THEMROSTAT_SET_POINT = 2;