title: Android Edittext with auto detection of credit card type
body: <p>I am dealing with payment option in android, By give an option to make a payment with credit card, some of the users may mistakenly choosing different credit card type for some other credit card number, so i decided to take a look for this issue to auto detect the card type based on number entered,</p>
  
  <p>I found Flipkart have this already in their android application, here i attach that functionality,</p>
  
  <p><img src="https://i.stack.imgur.com/Rq8aB.gif" alt="androidedittext"></p>
  
  <p>how to do this like a animation happening while changing the card type?</p>
  
  <p>I know to make a text watcher and based on the input to change the card type with a drawableRight image for EditText.</p>
  
  <p>But need to do some animation over drawableRight.</p>
  
  <p>Helps appreciated..!</p>