From e982994ecd7a37d64a49cc723ce13c68bcdf2fc3 Mon Sep 17 00:00:00 2001 From: hch <16607480311@163.com> Date: Sun, 7 Apr 2024 10:54:24 +0800 Subject: [PATCH] =?UTF-8?q?add=20[=E9=A6=96=E9=A1=B5=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E7=9F=AD=E5=89=A7=E5=85=A5=E5=8F=A3]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/yunbao/main/views/MainHomeViewHolder.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/main/src/main/java/com/yunbao/main/views/MainHomeViewHolder.java b/main/src/main/java/com/yunbao/main/views/MainHomeViewHolder.java index bf1bde850..6086fdb74 100644 --- a/main/src/main/java/com/yunbao/main/views/MainHomeViewHolder.java +++ b/main/src/main/java/com/yunbao/main/views/MainHomeViewHolder.java @@ -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) {