title: How to dismiss keyboard from editText when placed in scroll view?
body: <p>I have created a login form, where I have to edit text and buttons, which is placed in a scroll view. I want to dismiss the keyboard when I touch outside the edit text. I have implemented a scrollview onTouch Listener to dismiss keyboard, but what I want is both scroll and  dismissal of the keyboard. Is it possible? Below is the code:</p>
  <pre><code>ScrollView sv=(ScrollView) findViewById(R.id.scroll);
  sv.setOnTouchListener(new OnTouchListener() {
          
      @Override
      public boolean onTouch(View v, MotionEvent event) {
          // TODO Auto-generated method stub
          InputMethodManager imm = (InputMethodManager) getSystemService( INPUT_METHOD_SERVICE);
          imm.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0);
          return true;
      }
  });
  </code></pre>