Multiple animations on 1 imageview android

cpulse

New Member
I have 2 animations which are already working,i want to fade my train + tween my train on the same time.If I execute 1 of these lines it works.But if I try to execute both it, only 1 will work..I really can't find a solution here.Maybe you can help?\[code\] final ImageView mytrain = (ImageView) findViewById(R.id.train); final Animation traintween = AnimationUtils.loadAnimation(this,R.anim.treinanimation); final Animation trainfade = AnimationUtils.loadAnimation(this,R.anim.trainfade); mytrain.startAnimation(trainfade); mytrain.startAnimation(trainntween);\[/code\]I want mytrain to execute both animations..Thank you for the help!
 
Back
Top