Kaynağa Gözat

[修改]修复优投不展示的bug

zeki 5 yıl önce
ebeveyn
işleme
4d658eca62

+ 7 - 7
app/src/main/java/com/sheep/gamegroup/view/activity/ActMain.java

@@ -180,7 +180,7 @@ public class ActMain extends BaseActYmPermissionCheck {
     public void initView() {
         EventBus.getDefault().register(this);
         resetBottomTabImage();
-        ((ImageView) (tab_container.getChildAt(0).findViewById(R.id.tab_1_iv))).setImageResource(R.drawable.shouye_c);
+        //((ImageView) (tab_container.getChildAt(0).findViewById(R.id.tab_1_iv))).setImageResource(R.drawable.shouye_c);
         initFragments();
         if (!TestUtil.isDev())
             CommonUtil.getInstance().initMiDong(this, DataUtil.getInstance().getUserId());
@@ -280,20 +280,20 @@ public class ActMain extends BaseActYmPermissionCheck {
                     if ((currentTime - lastClickTime > MIN_CLICK_DELAY_TIME)) {
                         int animResource = R.drawable.gif_bottom_home;
                         int endResource = R.drawable.shouye_c;
-                        ImageView animTarget = view.findViewById(R.id.tab_1_iv);
+                        //ImageView animTarget = view.findViewById(R.id.tab_1_iv);
                         if (position == 0) {
                             //首页
                             animResource = R.drawable.gif_bottom_home;
-                            animTarget = view.findViewById(R.id.tab_1_iv);
+                            //animTarget = view.findViewById(R.id.tab_1_iv);
                             endResource = R.drawable.shouye_c;
                         } else if (position == 2) {
                             //游戏
                             animResource = R.drawable.gif_bottom_game;
-                            animTarget = view.findViewById(R.id.tab_3_iv);
+                            //animTarget = view.findViewById(R.id.tab_3_iv);
                             endResource = R.drawable.youxi_c;
                         }
                         resetBottomTabImage();
-                        loadGifOnlyOnce(animResource, animTarget, endResource);
+                        //loadGifOnlyOnce(animResource, animTarget, endResource);
                         lastClickTime = currentTime;
                         switchFragment(position);
                         checkWhichPage(position);
@@ -365,8 +365,8 @@ public class ActMain extends BaseActYmPermissionCheck {
     private void resetBottomTabImage() {
         tab_container.getChildAt(0).setActivated(false);
         tab_container.getChildAt(2).setActivated(false);
-        ((ImageView) (tab_container.getChildAt(0).findViewById(R.id.tab_1_iv))).setImageResource(R.drawable.shouye);
-        ((ImageView) (tab_container.getChildAt(2).findViewById(R.id.tab_3_iv))).setImageResource(R.drawable.youxi);
+        //((ImageView) (tab_container.getChildAt(0).findViewById(R.id.tab_1_iv))).setImageResource(R.drawable.shouye);
+        //((ImageView) (tab_container.getChildAt(2).findViewById(R.id.tab_3_iv))).setImageResource(R.drawable.youxi);
     }
 
     public void switchFragment(int position) {