修改测试问题,shouye ytuijian

This commit is contained in:
18401019693 2022-08-10 22:36:09 +08:00
parent 270bf2786e
commit 425030cd47
2 changed files with 4 additions and 8 deletions

View File

@ -316,8 +316,6 @@ public class LiveEndViewHolder extends AbsViewHolder implements View.OnClickList
return; return;
} }
LiveAudienceActivity.forward(mContext, liveBean, liveType, liveTypeVal, "", 0, liveSdk); LiveAudienceActivity.forward(mContext, liveBean, liveType, liveTypeVal, "", 0, liveSdk);
RouteUtil.forwardUserHome(mContext, String.valueOf(event.getModel().getId()), 0);
if (mContext instanceof LiveAnchorActivity) { if (mContext instanceof LiveAnchorActivity) {
((LiveAnchorActivity) mContext).superBackPressed(); ((LiveAnchorActivity) mContext).superBackPressed();
} else if (mContext instanceof LiveAudienceActivity) { } else if (mContext instanceof LiveAudienceActivity) {
@ -332,8 +330,6 @@ public class LiveEndViewHolder extends AbsViewHolder implements View.OnClickList
mCheckLivePresenter.checkLive(liveBean); mCheckLivePresenter.checkLive(liveBean);
} else { } else {
RouteUtil.forwardUserHome(mContext, String.valueOf(event.getModel().getId()), 0);
RouteUtil.forwardUserHome(mContext, String.valueOf(event.getModel().getId()), 0); RouteUtil.forwardUserHome(mContext, String.valueOf(event.getModel().getId()), 0);
if (mContext instanceof LiveAnchorActivity) { if (mContext instanceof LiveAnchorActivity) {
((LiveAnchorActivity) mContext).superBackPressed(); ((LiveAnchorActivity) mContext).superBackPressed();

View File

@ -33,7 +33,7 @@ public class FloatBannerView extends FrameLayout {
private ClipPathCircleImage clipImage1, clipImage2, clipImage3; private ClipPathCircleImage clipImage1, clipImage2, clipImage3;
private List<AnchorRecommendItemModel> list = new ArrayList<>(); private List<AnchorRecommendItemModel> list = new ArrayList<>();
//默认定时器时间 //默认定时器时间
private int delayMillis = 1000; private int delayMillis = 1500;
//Handler定时加载下一张的数据 //Handler定时加载下一张的数据
private Handler bannerHandler = new Handler(); private Handler bannerHandler = new Handler();
private int index = 0; private int index = 0;
@ -96,16 +96,16 @@ public class FloatBannerView extends FrameLayout {
ImgLoader.displayAvatar(getContext(), list.get(next).getAvatar(), clipImage3); ImgLoader.displayAvatar(getContext(), list.get(next).getAvatar(), clipImage3);
ImgLoader.displayAvatar(getContext(), list.get(next).getAvatar(), clipImage2); ImgLoader.displayAvatar(getContext(), list.get(next).getAvatar(), clipImage2);
ImgLoader.displayAvatar(getContext(), list.get(index).getAvatar(), clipImage1); ImgLoader.displayAvatar(getContext(), list.get(index).getAvatar(), clipImage1);
TranslateAnimation animationTranslate = new TranslateAnimation(0, -32f, 0, 0.2f); TranslateAnimation animationTranslate = new TranslateAnimation(0, -20f, 0, 0.2f);
TranslateAnimation animationTranslate3 = new TranslateAnimation(0, -20f, 0, 0.2f); TranslateAnimation animationTranslate3 = new TranslateAnimation(0, -20f, 0, 0.2f);
AnimationSet animationSet1 = new AnimationSet(true); AnimationSet animationSet1 = new AnimationSet(true);
animationSet1.setFillAfter(true); animationSet1.setFillAfter(true);
animationSet1.setDuration(200); animationSet1.setDuration(230);
animationSet1.addAnimation(animationTranslate); animationSet1.addAnimation(animationTranslate);
AlphaAnimation animationAlpha = new AlphaAnimation(1, 0); AlphaAnimation animationAlpha = new AlphaAnimation(1, 0);
AnimationSet animationSet2 = new AnimationSet(true); AnimationSet animationSet2 = new AnimationSet(true);
animationSet2.setFillAfter(true); animationSet2.setFillAfter(true);
animationSet2.setDuration(200); animationSet2.setDuration(210);
animationSet2.addAnimation(animationAlpha); animationSet2.addAnimation(animationAlpha);
animationSet2.addAnimation(animationTranslate3); animationSet2.addAnimation(animationTranslate3);