From 8c6b04685a64dc5fe491ce83c62b832ca8be4a2b Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Wed, 10 Aug 2022 15:15:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B5=8B=E8=AF=95=E9=97=AE?= =?UTF-8?q?=E9=A2=98,shouye=20ytuijian?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/fragment/SearchResultsItemFragment.java | 13 ++++++++++++- .../main/res/layout/view_search_results_item.xml | 4 +--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/main/src/main/java/com/yunbao/main/fragment/SearchResultsItemFragment.java b/main/src/main/java/com/yunbao/main/fragment/SearchResultsItemFragment.java index 6a759cd45..3bdb153dd 100644 --- a/main/src/main/java/com/yunbao/main/fragment/SearchResultsItemFragment.java +++ b/main/src/main/java/com/yunbao/main/fragment/SearchResultsItemFragment.java @@ -77,7 +77,18 @@ public class SearchResultsItemFragment extends BaseFragment { changeBatch.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { - Bus.get().post(new SearchRecommendEvent()); + MainNetManager.get(getActivity()) + .anchorRecommend("10", new HttpCallback() { + @Override + public void onSuccess(AnchorRecommendModel data) { + adapter.showData(data.getList()); + + } + + @Override + public void onError(String error) { + } + }); } }); MainNetManager.get(getActivity()) diff --git a/main/src/main/res/layout/view_search_results_item.xml b/main/src/main/res/layout/view_search_results_item.xml index 79cd9bcf1..e74388a8e 100644 --- a/main/src/main/res/layout/view_search_results_item.xml +++ b/main/src/main/res/layout/view_search_results_item.xml @@ -53,7 +53,6 @@ @@ -61,7 +60,6 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center_horizontal" - android:descendantFocusability="blocksDescendants" android:orientation="vertical"> -