Guys i have a textview which i need it to be blinking please help me with it.
<TextView
android:id="@+id/usage"
android:layout_marginTop="220dip"
android:layout_marginLeft="45dip"
android:layout_marginRight="15dip"
android:typeface="serif"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Google "
android:textColor="#030900"/>
I want the google text to be blinking
Here is my helper implementation using an alpha animation:
You can use this:
It's the same answer I gave in this post Blinking Text in android view
Hope this helps!
It is a deprecated answer to Android before
3.0
version, please uses SolArabehety's answer or look at this thread.Original Answer
Create an AlphaAnimation and apply it to the textview in the activity where you setup the textview. The blinking would be accomplished by repeating an animation from 1.0 alpha to 0.0 alpha to 1.0 alpha.
Edit: Google provideth.
You can make an animation or maybe why not making it View.VISIBLE and View.INVISIBLE with a timer? I think the better way is the animation with alpha indeed :)