title: android auto scroll when clicked on edittext
body: <p>When user click on edittext I want the screen to scroll to show the edittext in the middle of the screen. So I tried to listen to touch (setOnTouchListener, also tried with onClick and onFocuse) and then smoothScrollTo screen to put the edittext in the middle of the screen.</p>
  
  <p><strong>but for some reason</strong> when I add the setOnTouchListener to the edittext it doesn't get focus at all.</p>
  
  <p>what do I need to fix? or how can I achieve this?</p>
  
  <p>this is the setOnTouchListener code that cause the edittext not to get focused when clicked:</p>
  
  <pre><code>    et_email.setOnTouchListener(new View.OnTouchListener() {
          @Override
          public boolean onTouch(View v, MotionEvent event) {
              ScrollView scrollView = (ScrollView)getView().findViewById(R.id.ScrollViewSendDetails);
              scrollView.smoothScrollTo(0, et_email.getBottom());
              return true;
          }
      });
  </code></pre>