修改测试问题,shouye ytuijian

This commit is contained in:
18401019693
2022-08-10 09:34:56 +08:00
parent b465cdc455
commit 28a1169a89
3 changed files with 16 additions and 7 deletions

View File

@@ -7,6 +7,9 @@ import android.util.AttributeSet;
import android.view.View;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.view.animation.AnimationSet;
import android.view.animation.AnimationUtils;
import android.view.animation.ScaleAnimation;
import android.view.animation.TranslateAnimation;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
@@ -95,11 +98,12 @@ public class FloatBannerView extends FrameLayout {
ImgLoader.displayAvatar(getContext(), list.get(index).getAvatar(), clipImage1);
Animation animation = new TranslateAnimation(0, -40, 0, 0);
animation.setFillAfter(true);
animation.setDuration(700);
animation.setDuration(800);
Animation animation2 = new AlphaAnimation(1, 0);
animation2.setFillAfter(true);
animation2.setDuration(800);
animation2.setDuration(900);
animation.setAnimationListener(new Animation.AnimationListener() {
@Override