title: Remove default text from edit text box Android
body: <p>How do you remove the default text you assign a <code>&lt;editText&gt;</code> when the user focuses on that text box?</p>
  
  <p>I found the code below that looks like it should work but when I click on the text box I still have to delete the default text before typing new text.</p>
  
  <pre><code>         final EditText RemoveZipField = (EditText) findViewById(R.id.zipcode);
           RemoveZipField.setOnFocusChangeListener(new OnFocusChangeListener()
           {
               @Override
              public void onFocusChange(View v, boolean hasFocus) 
               {
                   if (hasFocus==true)
                   {
                       if (RemoveZipField.getText().toString().compareTo("Zipcode")==0)
                       {
                           String inText = "I AM IN";
                           Log.d(TAG,  inText);
                           RemoveZipField.setText("");
                       }else{
                           String outText = "I AM OUT";
                           Log.d(TAG,  outText);
                       }
                   }
               }
           });
  </code></pre>