android动画幻灯片下载
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了android动画幻灯片下载相关的知识,希望对你有一定的参考价值。
AnimationSet set = new AnimationSet(true); Animation animation = new TranslateAnimation( Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, -1.0f, Animation.RELATIVE_TO_SELF, 0.0f); animation.setDuration(800); animation.setAnimationListener(new AnimationListener() { @Override public void onAnimationStart(Animation animation) { // TODO Auto-generated method stub // MapContacts.this.mapviewgroup.setVisibility(View.VISIBLE); } @Override public void onAnimationRepeat(Animation animation) { // TODO Auto-generated method stub } @Override public void onAnimationEnd(Animation animation) { // TODO Auto-generated method stub } }); set.addAnimation(animation); LayoutAnimationController controller = new LayoutAnimationController( set, 0.25f); panel.setLayoutAnimation(controller); } AnimationSet set = new AnimationSet(true); /* * Animation animation = new AlphaAnimation(1.0f, 0.0f); * animation.setDuration(200); set.addAnimation(animation); */ Animation animation = new TranslateAnimation( Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, -1.0f); animation.setDuration(800); animation.setAnimationListener(new AnimationListener() { @Override public void onAnimationStart(Animation animation) { // TODO Auto-generated method stub } @Override public void onAnimationRepeat(Animation animation) { // TODO Auto-generated method stub } @Override public void onAnimationEnd(Animation animation) { // MapContacts.this.mapviewgroup.setVisibility(View.INVISIBLE); // TODO Auto-generated method stub } }); set.addAnimation(animation); LayoutAnimationController controller = new LayoutAnimationController( set, 0.25f); panel.setLayoutAnimation(controller); }
以上是关于android动画幻灯片下载的主要内容,如果未能解决你的问题,请参考以下文章
我可以更改 Android startActivity() 过渡动画吗?