title: issue with OnFocusChangeListener() in android
body: <p>I have a form for <code>member</code> registration in my android app, I have applied the <code>animation</code> effect on fields which are required (some <code>EditText</code> views in this case) if those fields are not filled the effect should occur then like this :</p>
  
  <pre><code>mEditText.setOnFocusChangeListener(new View.OnFocusChangeListener() {
  
          @Override
          public void onFocusChange(View arg0, boolean arg1) {
              // TODO Auto-generated method stub
              if (mEditText.getText.equals("")) {
                  mEditText.setAnimation(MyAnimation.animate());}
  </code></pre>
  
  <p>and <code>MyAnimation.animate()</code> is like :</p>
  
  <pre><code>public class MyAnimation {
  public static Animation animate(){
      TranslateAnimation mAnimate = new TranslateAnimation(0, 5, 0, 0);
      mAnimate.setInterpolator(new CycleInterpolator(50));
      mAnimate.setDuration(600);
      return mAnimate;
  }
  </code></pre>
  
  <p>}</p>
  
  <p>but the problem is it occurs when the <code>mEditText</code> gains the focus, and my need is this should occur on focus leave if <code>mEditText</code> is empty.</p>