Show Animations:
mshowaction = new Translateanimation (animation.relative_to_self, 1.0f,animation.relative_to_self, 0.0f, Animation.relative_to_self,0.0f, Animation.relative_to_self, 0.0f);mshowaction.setduration (+);
Hide Animation:
mhiddenaction = new Translateanimation (animation.relative_to_self,0.0f, Animation.relative_to_self, 1.0f,animation.relative_to_self, 0.0f, Animation.relative_to_self,0.0f);mhiddenaction.setduration (+);
View's display:
msidebarlayout.startanimation (mshowaction);msidebarlayout.setvisibility (view.visible);msidebarhidebtn.setvisibility (view.gone);
View's hidden:
msidebarlayout.startanimation (mhiddenaction);msidebarlayout.setvisibility (view.gone);msidebarhidebtn.setvisibility (view.visible);
Animation effect:when displayed, the view slides from the right to the left and hides from left to right when hidden;
Animation effect View controls display and hide effects