@Override public boolean onTouchEvent(MotionEvent motionevent){
  if (motionevent.getAction() == 0) {
    requestFocus();
    if (underlined) {
      startAnimation();
    }
    showKeyboard();
  }
  return super.onTouchEvent(motionevent);
}

@ Override public boolean onTouchEvent ( MotionEvent motionevent ) { if ( motionevent . getAction ( ) == 0 ) { requestFocus ( ) ; if ( underlined ) { startAnimation ( ) ; } showKeyboard ( ) ; } return super . onTouchEvent ( motionevent ) ; }
when a touch is detected the view need to focus and animate if is necessary
