My app has a small web view that I want to animate into place once the page has finished loading. My code looks like this:
view.setVisibility(View.VISIBLE);
TranslateAnimation anim=new TranslateAnimation(0.0f, 0.0f,
view.getLayoutParams().height, 0.0f);
anim.setDuration(5);
anim.setInterpolator(new LinearInterpolator());
view.startAnimation(anim);
It animates all right, but I can't seem to control the speed. I've set the value for setDuration() to 5, 500, 5000, 5000000 - all to no discernible effect.
Is there something else I need to do to control animation duration?
BTW my base SDK is 1.6.