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
动画的设置 pop
最新推荐文章于 2022-10-12 07:58:30 发布