android - Tween Animation on a Text View won't show properly -
i'm new android, , i'm having problem tween animations.
what want modify alpha attribute of textview
create fadein effect. here animation xml:
<?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" android:duration="1000" > //long time, want see happening <alpha android:fromalpha="0.0" //i want text start transparent android:toalpha="1.0" //i want end opaque /> </set>
then, start animation inside current activity. started inside oncreate()
method assumed wasn't best method handle animations (plus: didn't work)! did override of onresume()
method , put following code there:
animation animation = animationutils.loadanimation(this, r.anim.fadein); textview.startanimation(fadingentrance);
protected variable textview
initialized inside oncreate()
method.
all of result in textview
popping out of after time without fade in effect want.
what missing? it's in xml code or onresume()
not best place handle animations? (although api's documentation states is)
Comments
Post a Comment