Closed rw86347 closed 9 years ago
Hard for me to tell. But maybe what's said here is relevant: http://stackoverflow.com/questions/11386953/alphaanimation-does-not-work ? In other words, maybe we need to ensure that the view's alpha is non zero when animation starts?
I really really want to thank you for this. This is exactly what I needed however I can't seem to animate alpha from 0 to 1.
This code can fit directly into your sample to show you the problem.
public void shuffle(View view) { final AlphaAnimation animation1 = new AlphaAnimation(0.1f, 1.0f); animation1.setDuration(1000); animation1.setStartOffset(1000);