Parcourir la source

去除Match筛选按钮

huping il y a 1 an
Parent
commit
8fd1d66c41

+ 3 - 3
TMessagesProj/src/main/java/org/telegram/onecric/ui/activity/MatchActivity.java

@@ -81,16 +81,16 @@ public class MatchActivity extends BaseTabActivity {
         viewPager.setOffscreenPageLimit(3);
         viewPager.setCurrentItem(1);
 
-        updateTabView(tabLayout.getTabAt(1), true);
+//        updateTabView(tabLayout.getTabAt(1), true);
         tabLayout.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {
             @Override
             public void onTabSelected(TabLayout.Tab tab) {
-                updateTabView(tab, true);
+//                updateTabView(tab, true);
             }
 
             @Override
             public void onTabUnselected(TabLayout.Tab tab) {
-                updateTabView(tab, false);
+//                updateTabView(tab, false);
             }
 
             @Override

+ 16 - 15
TMessagesProj/src/main/java/org/telegram/onecric/ui/activity/MatchFragment.java

@@ -75,13 +75,13 @@ public class MatchFragment implements BaseViewFragment, MatchView, View.OnClickL
     }
 
     private void initListener() {
-        mTourContainer = mView.findViewById(R.id.tv_tournament);
-        mTourContainer.setOnClickListener(this);
+//        mTourContainer = mView.findViewById(R.id.tv_tournament);
+//        mTourContainer.setOnClickListener(this);
         mTourTitle = mView.findViewById(R.id.match_tournament_title);
         mTourCount = mView.findViewById(R.id.match_tournament_count);
         mTourArrow = mView.findViewById(R.id.match_tournament_arrow);
 
-        setTourBar(0);
+//        setTourBar(0);
 
         mView.findViewById(R.id.ll_streaming).setOnClickListener(this);
     }
@@ -136,7 +136,7 @@ public class MatchFragment implements BaseViewFragment, MatchView, View.OnClickL
     }
 
     private void initData() {
-        mPresenter.getTournamentList();
+//        mPresenter.getTournamentList();
         mPresenter.getCricketMatchList(true, mTimeType, mTournamentId, mStreaming, 1);
     }
 
@@ -224,17 +224,18 @@ public class MatchFragment implements BaseViewFragment, MatchView, View.OnClickL
     @Override
     public void onClick(View v) {
         int id = v.getId();
-        if (id == R.id.tv_tournament) {
-            if (mTournaListDialog != null) {
-                new XPopup.Builder(mContext)
-                        .moveUpToKeyboard(false)
-                        .isDestroyOnDismiss(false)
-                        .isLightNavigationBar(true)
-                        .navigationBarColor(mContext.getResources().getColor(R.color.colorWhite))
-                        .asCustom(mTournaListDialog)
-                        .show();
-            }
-        } else if (id == R.id.ll_streaming) {
+//        if (id == R.id.tv_tournament) {
+//            if (mTournaListDialog != null) {
+//                new XPopup.Builder(mContext)
+//                        .moveUpToKeyboard(false)
+//                        .isDestroyOnDismiss(false)
+//                        .isLightNavigationBar(true)
+//                        .navigationBarColor(mContext.getResources().getColor(R.color.colorWhite))
+//                        .asCustom(mTournaListDialog)
+//                        .show();
+//            }
+//        } else
+            if (id == R.id.ll_streaming) {
             if (mStreaming == 1) {
                 mStreaming = 0;
                 mIvStreaming.setBackgroundTintList(ContextCompat.getColorStateList(mContext, R.color.c_CCCCCC));

+ 3 - 0
TMessagesProj/src/main/res/layout/fragment_match.xml

@@ -13,10 +13,12 @@
         android:gravity="center"
         android:orientation="horizontal"
         android:paddingTop="8dp"
+        android:visibility="gone"
         android:paddingBottom="8dp"
         app:layout_constraintTop_toTopOf="parent">
 
         <LinearLayout
+            android:visibility="gone"
             android:id="@+id/tv_tournament"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
@@ -91,6 +93,7 @@
         android:id="@+id/match_stream_underline"
         android:layout_width="match_parent"
         android:layout_height="1dp"
+        android:visibility="gone"
         android:background="@color/line_color"
         app:layout_constraintTop_toBottomOf="@id/match_stream_container" />