界面修改
This commit is contained in:
@@ -137,13 +137,15 @@ public class FloatBannerView extends FrameLayout {
|
||||
|
||||
}
|
||||
});
|
||||
TranslateAnimation animationTranslate2 = new TranslateAnimation(0, -targetX / 1.2f, 0, -targetY / 1.2f);
|
||||
ScaleAnimation scaleAnimation2 = new ScaleAnimation(1f, 0.8f, 1f, 0.8f);
|
||||
TranslateAnimation animationTranslate2 = new TranslateAnimation(0, -bannerLayout4.getX()/0.8f, 0, bannerLayout4.getY()*0.8f);
|
||||
AlphaAnimation animationAlpha = new AlphaAnimation(1, 0);
|
||||
AnimationSet animationSet2 = new AnimationSet(true);
|
||||
animationSet2.setFillAfter(true);
|
||||
animationSet2.setDuration(700);
|
||||
animationSet2.setDuration(800);
|
||||
animationSet2.addAnimation(animationTranslate2);
|
||||
animationSet2.addAnimation(animationAlpha);
|
||||
animationSet2.addAnimation(scaleAnimation2);
|
||||
animationSet2.setAnimationListener(new Animation.AnimationListener() {
|
||||
@Override
|
||||
public void onAnimationStart(Animation animation) {
|
||||
|
||||
Reference in New Issue
Block a user