1:优化充值页面,展示金额recyclerview自适应高度

This commit is contained in:
2025-12-15 18:42:10 +08:00
parent a7a24b52f9
commit 8dcafa37ba

View File

@@ -99,7 +99,8 @@ public class RechargeActivity extends BaseMvpActivity<RechargePresenter, Activit
ViewGroup.LayoutParams layoutParams = mBinding.recyclerView.getLayoutParams(); ViewGroup.LayoutParams layoutParams = mBinding.recyclerView.getLayoutParams();
layoutParams.width = WindowManager.LayoutParams.MATCH_PARENT; // 使用你定义的getWidth方法 layoutParams.width = WindowManager.LayoutParams.MATCH_PARENT; // 使用你定义的getWidth方法
layoutParams.height = SystemUtils.getWidth(372); // 示例高度 // layoutParams.height = SystemUtils.getWidth(372); // 示例高度
layoutParams.height = WindowManager.LayoutParams.WRAP_CONTENT; // 示例高度
mBinding.recyclerView.setLayoutParams(layoutParams); mBinding.recyclerView.setLayoutParams(layoutParams);
} }