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