add [首页新增短剧入口]

This commit is contained in:
hch 2024-04-07 10:54:24 +08:00
parent a0294a8405
commit e982994ecd

View File

@ -35,7 +35,6 @@ public class MainHomeViewHolder extends AbsMainHomeParentViewHolder {
private ImageView img_trophy;
private boolean floatWarOrder;
private TextView tvPlay;
private HorizontalScrollView view_horizontal;
public boolean isFloatWarOrder() {
return floatWarOrder;
@ -74,7 +73,6 @@ public class MainHomeViewHolder extends AbsMainHomeParentViewHolder {
RouteUtil.forwardCommunityActivity();
}
});
view_horizontal = (HorizontalScrollView) findViewById(R.id.view_horizontal);
}
public void setCurPosition(int position) {
@ -88,25 +86,21 @@ public class MainHomeViewHolder extends AbsMainHomeParentViewHolder {
floatWarOrder = false;
MobclickAgent.onEvent(mContext, "home_page_follow", "首页关注列表按钮");
EventBus.getDefault().post(new FloatWarOrderEvent().setFloatWarOrder(false));
view_horizontal.setScaleX(0);
break;
case 1:
floatWarOrder = false;
MobclickAgent.onEvent(mContext, "home_page_hot", "首页热门列表按钮");
EventBus.getDefault().post(new FloatWarOrderEvent().setFloatWarOrder(false));
view_horizontal.setScaleX(0);
break;
case 2:
floatWarOrder = false;
MobclickAgent.onEvent(mContext, "home_page_recommend", "首页推荐列表按钮");
EventBus.getDefault().post(new FloatWarOrderEvent().setFloatWarOrder(false));
view_horizontal.setScaleX(view_horizontal.getWidth());
break;
case 3:
floatWarOrder = true;
MobclickAgent.onEvent(mContext, "home_page_redpk", "首页红包列表按钮");
EventBus.getDefault().post(new FloatWarOrderEvent().setFloatWarOrder(true));
view_horizontal.setScaleX(view_horizontal.getWidth());
break;
}
if (mViewHolders == null) {