title: error not hiding on touch listener, click listener : Android
body: <p>I have a Android program with few text box. I set error when value is null. 
  I want on touch the error should disappear and keyboard to be shown. but error is shown. but not hidden when I touch or click.</p>
  
  <pre><code>else if(txtLdays.getText().toString().trim().equals(""))
   {
       txtLdays.requestFocus();   
       txtLdays.setError("Please Enter Number of Days " );  
      // delay();
  
       return false;
   }
  </code></pre>
  
  <p>and my edit text functions I call on oncreate</p>
  
  <pre><code>        txtLdays = (EditText) findViewById(R.id.etLdays);
          txtLdays.setInputType(InputType.TYPE_CLASS_NUMBER);
          txtLdays.setInputType(InputType.TYPE_NUMBER_FLAG_DECIMAL);
          txtLdays.setInputType(InputType.TYPE_NUMBER_FLAG_SIGNED);
          txtLdays.setKeyListener(DigitsKeyListener.getInstance("0123456789."));
          txtLdays.setRawInputType(Configuration.KEYBOARD_12KEY);
  
          txtLdays.setFilters(new InputFilter[] {new DecimalDigitsInputFilter(5,1)});
  
  txtLdays.setOnTouchListener(new View.OnTouchListener(){
              public boolean onTouch(View view, MotionEvent motionEvent) {                                                       
                   // your code here....
                  txtLdays.setError(null);      
  
                   return false;
              }
          });
          txtLdays.setOnClickListener(new View.OnClickListener() 
          {
                  @Override
                  public void onClick(View v) 
                  {
                       txtLdays.requestFocus();   
                      txtLdays.setError(null); 
                  }
  
              });
  </code></pre>