修改BUG

This commit is contained in:
2025-08-08 10:31:50 +08:00
parent 38337c63a5
commit 4f09ec38c1
126 changed files with 4166 additions and 711 deletions

View File

@@ -8,10 +8,12 @@
android:theme="@style/BaseAppTheme">
<activity
android:name=".activity.SearchActivity"
android:launchMode="singleTask"
android:exported="true" />
<activity
android:name=".activity.RankingListActivity"
android:launchMode="singleTask"
android:exported="false"
/>
</application>

View File

@@ -111,19 +111,19 @@ public class VoiceCategoryFragment extends BaseMvpFragment<VoiceCategoryPresente
ImageUtils.loadCenterCrop((String) bannerModel.getXBannerUrl(), (ImageView) view);
}
});
// mBinding.banner.setOnItemClickListener(new XBanner.OnItemClickListener() {
// @Override
// public void onItemClick(XBanner banner, Object model, View view, int position) {
mBinding.banner.setOnItemClickListener(new XBanner.OnItemClickListener() {
@Override
public void onItemClick(XBanner banner, Object model, View view, int position) {
// if (ProxyChecker.isProxySet(context)) {
// ToastUtils.show("使用代理禁止访问");
// return;
// }
// /**
// * 1房间2文章3链接 其他详情图
// *
// * type=1时该值表示房间idtype=2时表示文章id
// */
// BannerModel bannerModel = (BannerModel) model;
/**
* 1房间2文章3链接 其他详情图
*
* type=1时该值表示房间idtype=2时表示文章id
*/
BannerModel bannerModel = (BannerModel) model;
// if ("6".equals(bannerModel.getType())) {
// return;
// }
@@ -136,7 +136,7 @@ public class VoiceCategoryFragment extends BaseMvpFragment<VoiceCategoryPresente
// } else if (bannerModel.getType().equals("10")) {
// ARouter.getInstance().build(ARouteConstants.ME_SHOP).withString("from", "首页横幅").navigation();
// } else {
// ARouter.getInstance().build(ARouteConstants.H5).withString("url", URLConstants.HOME_BANNER + bannerModel.getAd_id()).withString("title", bannerModel.getTitle()).navigation();
ARouter.getInstance().build(ARouteConstants.H5).withString("url",bannerModel.getUrl()).withString("title", "首页横幅").navigation();
// }
// try {
// //A0204点击banner
@@ -145,8 +145,8 @@ public class VoiceCategoryFragment extends BaseMvpFragment<VoiceCategoryPresente
// } catch (JSONException e) {
// e.printStackTrace();
// }
// }
// });
}
});
// layoutManager = new LinearLayoutManager(
// getActivity(), LinearLayoutManager.HORIZONTAL, false);

View File

@@ -3,6 +3,7 @@ package com.example.modulevoice.presenter;
import android.content.Context;
import android.speech.tts.Voice;
import com.example.modulevoice.contacts.HotListContacts;
import com.example.modulevoice.contacts.VoiceCategoryContacts;
import com.google.gson.reflect.TypeToken;
import com.qxcm.moduleutil.bean.BannerModel;
@@ -13,6 +14,7 @@ import com.qxcm.moduleutil.presenter.BasePresenter;
import com.qxcm.moduleutil.utils.GsonUtils;
import com.qxcm.moduleutil.utils.SpUtil;
import java.lang.ref.WeakReference;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;
@@ -20,8 +22,10 @@ import java.util.List;
import io.reactivex.disposables.Disposable;
public class VoiceCategoryPresenter extends BasePresenter<VoiceCategoryContacts.View> implements VoiceCategoryContacts.IIndexCategoryPre {
VoiceCategoryContacts.View mView;
public VoiceCategoryPresenter(VoiceCategoryContacts.View view, Context context) {
super(view, context);
mView = view;
}
@Override
@@ -89,6 +93,9 @@ public class VoiceCategoryPresenter extends BasePresenter<VoiceCategoryContacts.
@Override
public void onNext(List<BannerModel> bannerModels) {
if (MvpRef==null){
MvpRef=new WeakReference<>(mView);
}
MvpRef.get().setBanners(bannerModels);
}

View File

@@ -53,7 +53,7 @@
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@android:color/transparent"
android:hint="输入相关的主播名、房间名"
android:hint="输入相关的房间名"
android:maxLength="10"
android:singleLine="true"
android:textColor="#333333"

View File

@@ -232,7 +232,7 @@
android:layout_width="@dimen/dp_44"
android:layout_height="@dimen/dp_44"
android:src="@mipmap/ic_launcher"
android:layout_marginStart="@dimen/dp_9"
android:layout_marginStart="@dimen/dp_10"
android:layout_marginTop="@dimen/dp_12"
app:riv_oval="true" />
@@ -241,7 +241,7 @@
android:layout_width="@dimen/dp_50"
android:layout_height="@dimen/dp_50"
android:layout_gravity="center_horizontal|top|center"
android:layout_marginStart="@dimen/dp_9"
android:layout_marginStart="@dimen/dp_8"
android:layout_marginTop="@dimen/dp_10"
android:src="@mipmap/huangg1" />
</RelativeLayout>