Parcourir la source

删除隐藏下面的主页功能键

zengjiebin il y a 8 ans
Parent
commit
8218e61a57

+ 0 - 1
app/build.gradle

@@ -75,7 +75,6 @@ android {
             buildConfigField "String", "DUANDUAN_GRAPH", '"sheeptest"'
             buildConfigField "boolean", "KF_DEBUG", 'true'
 //            buildConfigField "String", "API_DOMAIN", '"10.8.210.229:8081"'
-//            buildConfigField "String", "RN_DOMAIN", '"10.8.210.229:8070"'
             buildConfigField "String", "API_DOMAIN", '"test.bdmapp.kfzs.com"'
 //            buildConfigField "String", "API_DOMAIN", '"10.8.210.229:8081"'
             buildConfigField "String", "JFSC_DOMAIN", '"http://10.8.210.190:8080/"'//积分商城

+ 0 - 70
app/src/main/java/com/kfzs/duanduan/ActMain.java

@@ -78,8 +78,6 @@ public class ActMain extends BaseCompatActivity{
 
     @BindView(R.id.other_container)
     LinearLayout other_container;
-    @BindView(R.id.layout_bottom)
-    RelativeLayout mLayoutBottom;
 
     public final static String INTEN_GAME_ID = "INTEN_GAME_ID";
 
@@ -110,7 +108,6 @@ public class ActMain extends BaseCompatActivity{
         mDownloadTaskService.restoreDownloadTaskStatus();
 
         initLinsener();
-        initAnimation();
     }
 
     private void initLinsener() {
@@ -394,71 +391,4 @@ public class ActMain extends BaseCompatActivity{
         return backStr;
     }
 
-    private Animation animationShow;
-    private Animation animationHide;
-
-    private void initAnimation() {
-        if(mLayoutBottom == null){
-            mLayoutBottom = findViewByIdT(R.id.layout_bottom);
-            if(BuildConfig.DEBUG)   G.showToast("怎么会是空呢?");
-        }
-        animationShow = new TranslateAnimation(Animation.RELATIVE_TO_SELF, 0f,
-                Animation.RELATIVE_TO_SELF, 0f, Animation.RELATIVE_TO_SELF, 1f,
-                Animation.RELATIVE_TO_SELF, 0f);
-        animationShow.setDuration(600);
-        animationShow.setAnimationListener(new Animation.AnimationListener() {
-            @Override
-            public void onAnimationStart(Animation animation) {
-
-            }
-
-            @Override
-            public void onAnimationEnd(Animation animation) {
-                mLayoutBottom.clearAnimation();
-                mLayoutBottom.setVisibility(View.VISIBLE);
-            }
-
-            @Override
-            public void onAnimationRepeat(Animation animation) {
-
-            }
-        });
-
-        animationHide = new TranslateAnimation(Animation.RELATIVE_TO_SELF, 0f,
-                Animation.RELATIVE_TO_SELF, 0f, Animation.RELATIVE_TO_SELF, 0f,
-                Animation.RELATIVE_TO_SELF, 1f);
-        animationHide.setDuration(600);
-        animationHide.setAnimationListener(new Animation.AnimationListener() {
-            @Override
-            public void onAnimationStart(Animation animation) {
-
-            }
-
-            @Override
-            public void onAnimationEnd(Animation animation) {
-                mLayoutBottom.clearAnimation();
-                if (tabsHelper.getCurrentItem() == MainTab.FgtMainGame.getPosition()) {
-                    mLayoutBottom.setVisibility(View.GONE);
-                }
-            }
-
-            @Override
-            public void onAnimationRepeat(Animation animation) {
-
-            }
-        });
-    }
-
-    /**
-     * 显示或者隐藏底部
-     *
-     * @param isShow
-     */
-    public void showOrHideBottom(boolean isShow) {
-        if (isShow) {
-            mLayoutBottom.startAnimation(animationShow);
-            return;
-        }
-        mLayoutBottom.startAnimation(animationHide);
-    }
 }

+ 0 - 3
app/src/main/java/com/kfzs/duanduan/adp/AdpMainPageRecy.java

@@ -189,9 +189,6 @@ public class AdpMainPageRecy extends AdpCommonRecy<RecyleObj> {
                             mRecyView.scrollToPosition(0);
                         }
                     });
-                    if (mContext instanceof ActMain) {
-                        ((ActMain) mContext).showOrHideBottom(true);
-                    }
                 }
                 break;
         }

+ 0 - 15
app/src/main/java/com/kfzs/duanduan/fragment/FgtMainGame.java

@@ -62,7 +62,6 @@ public class FgtMainGame extends BaseCompatFragment {
     private static final int POS_CARTON = 9;//二次元
     private static final int POS_BACK_TOP = 10;//返回到顶部
     SwipeRefreshLayout mSwipeRefreshLayout;
-    private boolean mIsHide = false;//底部是否已经隐藏
 
     @Override
     protected void initView(Bundle savedInstanceState) {
@@ -86,20 +85,6 @@ public class FgtMainGame extends BaseCompatFragment {
             }
         });
 
-        mRecyView.addOnScrollListener(new RecyclerView.OnScrollListener() {
-            @Override
-            public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
-                super.onScrolled(recyclerView, dx, dy);
-//                Log.e("----->", dx + "|" + dy + "|" + getActivity());
-                if (dy > 1 && !mIsHide) {
-                    mIsHide = true;
-                    ((ActMain) getActivity()).showOrHideBottom(false);
-                } else if (dy < -1 && mIsHide) {
-                    ((ActMain) getActivity()).showOrHideBottom(true);
-                    mIsHide = false;
-                }
-            }
-        });
     }
 
     @Override