@Override public boolean onTouchEvent(MotionEvent event) { // LORDMAN 2013-08-16 if (enabled == false) { return false; } int actType = event.getAction() & MotionEvent.ACTION_MASK; switch (actType) { case MotionEvent.ACTION_DOWN: { btnState = 1; invalidate(); // Log.i("Java","jImageBtn Here"); break; } case MotionEvent.ACTION_MOVE: { break; } case MotionEvent.ACTION_UP: { btnState = 0; invalidate(); controls.pOnClick(PasObj, Const.Click_Default); break; } } return true; }