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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -