I have two views,
<View1:
id:mainView
layout_above:@+id/secView
matchParent
matchParent />
<View2:
id:secView
matchParent
matchParent />
I am trying to animate the the visibility of second view as slide bottom.
here is my code
TranslateAnimation animate = new TranslateAnimation(0,0, 0,mSlideableView.getHeight());
animate.setDuration(800);
animate.setFillAfter(true);
hidePane();
mSlideableView.startAnimation(animate);
Animation animation1 = new Animation()
{
@Override
protected void applyTransformation(float interpolatedTime, Transformation t)
{
super.applyTransformation(interpolatedTime, t);
}
};
animation1.setDuration(810);
mMainView.startAnimation(animation1);
The secondView does slideDown with animation however the mainView which should increase its size to maximum screen shows a jerk. How can i set its animation of resizing?
mMainView.startAnimation(animation1);
Doesn't work
Aucun commentaire:
Enregistrer un commentaire