动画的设置 pop

来源:互联网 发布:裸钻哪里买 知乎 编辑:程序博客网 时间:2024/05/20 11:47
int toXValue = isShow ? -1 : 1; AnimationSet set = new AnimationSet(true); TranslateAnimation translate = new TranslateAnimation( Animation.RELATIVE_TO_SELF, 0, Animation.RELATIVE_TO_SELF, toXValue, Animation.RELATIVE_TO_SELF, 0, Animation.RELATIVE_TO_SELF, 0); translate.setDuration(300);//设置动画持续时间// translate.setRepeatCount(1);//设置重复次数// translate.setRepeatMode(Animation.REVERSE);//设置反方向执行 set.addAnimation(translate); set.setFillAfter(true); view.startAnimation(set);2016/4/25 13:38:29 0.0 2016/4/25 13:38:29popupWindow = new PopupWindow(layout, 300,300);popupWindow.setAnimationStyle(R.style.PopupAnimation); 蒹葭cc_ 2016/4/25 13:39:07就好了? 0.0 2016/4/25 13:39:12嗯是的 0.0 2016/4/25 13:39:37
0 0
原创粉丝点击