title: How to change background color of edittext
body: <p>i've some edittext and i'm checking the string inside it entered from users. when users clicks button at the end of dialog, if some edittexts aren't filled, i change background color of it and set a text in this way:</p>
  
  <pre><code>for(int i=0;i&lt;fields.length;i++){
              if(fields[i].getText().toString().trim().length()&lt;=0){
                  redFields(fields[i]);
              }
          }
  private void redFields(EditText t){
          t.setBackgroundColor(Color.RED);
          t.setText("FIELD REQUESTED!");
      }
  </code></pre>
  
  <p>Now when users clicks again on a red edittext i want to change background color to white and delete text inside it ( <code>FIELD REQUESTED</code> ). 
  I'm trying to do it in this way:</p>
  
  <pre><code>private void addFieldsListener(){
          for(EditText f : fields){
              final EditText ff = f;
              ff.setOnFocusChangeListener(new View.OnFocusChangeListener() {
                  public void onFocusChange(View v, boolean hasFocus) {
                      if(hasFocus &amp;&amp; ff.getBackground().equals(Color.RED)){
                          ff.setBackgroundColor(Color.WHITE);
                      }
                  }
              });
          }
      }
  </code></pre>
  
  <p>but nothing :(
  i try with <code>onClickListener</code> but it doesn't work. how can i do it? can you help me?</p>