. f Android blink textview in different colors ~ Android Developers Blog

Wednesday, 14 May 2014

Android blink textview in different colors

Hello Friends,

  1. ValueAnimator colorAnim = ObjectAnimator.ofInt(textView, "textColor"0xffFF80800xff8080FF);  
  2. colorAnim.setDuration(500);  
  3. colorAnim.setEvaluator(new ArgbEvaluator());  
  4. colorAnim.setRepeatCount(ValueAnimator.INFINITE);  
  5. colorAnim.setRepeatMode(ValueAnimator.REVERSE);  
  6. colorAnim.start();  


For blinking textview background color replace below code
  1. ValueAnimator colorAnim = ObjectAnimator.ofInt(textView, "backgroundColor"0xffFF80800xff8080FF);  

Mukesh Kumar

Hi Guys I am from Delhi working as Web/Mobile Application Developer(Android Developer), also have knowledge of Roboelctric and Mockito ,android test driven development... Blogging has been my passion and I think blogging is one of the powerful medium to share knowledge and ideas....

0 comments:

Post a Comment

 

Copyright @ 2013 Android Developers Blog.