Sfoglia il codice sorgente

011 涂鸦搜索功能

zhangshenjie 4 mesi fa
parent
commit
1fe696a55a

+ 1 - 3
BusinessCommon/src/main/res/layout/item_home_header.xml

@@ -39,7 +39,5 @@
     <com.develop.common.widget.CategoryTabViewLayout
         android:id="@+id/category_tab_view"
         android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:visibility="gone"
-        />
+        android:layout_height="wrap_content" />
 </LinearLayout>

+ 5 - 1
BusinessMain/src/main/java/com/develop/main/ui/RecipesFragment.kt

@@ -338,7 +338,11 @@ class RecipesFragment : CommonBVMFragment<FragmentCommeListBinding, HomeViewMode
                             val categoryTabViewLayout =
                                 findView<CategoryTabViewLayout>(R.id.category_tab_view)
                             if (categoryModel != null) {
-                                categoryTabViewLayout.setGone()
+                                if (sn.startsWith("011")){
+                                    categoryTabViewLayout.setGone()
+                                }else{
+                                    categoryTabViewLayout.setVisible()
+                                }
                                 categoryTabViewLayout.apply {
                                     updateCategorySize(
                                         categoryModel.allSize,

+ 1 - 3
BusinessMain/src/main/res/layout/home_category_tab_provider.xml

@@ -2,6 +2,4 @@
 <com.develop.common.widget.CategoryTabViewLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:id="@+id/category_tab_view"
     android:layout_width="match_parent"
-    android:layout_height="wrap_content"
-    android:visibility="gone"
-    />
+    android:layout_height="wrap_content" />