1:优化充值页面,展示金额recyclerview自适应高度
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user