只需要在跳转的时候添加intent.putExtra("autoEnlarged", true);即可;
// 扫码
Intent intent = new Intent();
if ("vivo".equals(android.os.Build.MANUFACTURER)) {
intent.setClass(getContext(), CaptureActivity24.class);
} else {
intent.setClass(getContext(), android.os.Build.VERSION.SDK_INT > 23 ? CaptureActivity24.class : CaptureActivity.class);
}
intent.putExtra("autoEnlarged", true);
startActivityForResult(intent, 0);
集成zxing扫码解决二维码自动放大
最新推荐文章于 2025-09-26 05:50:54 发布
部署运行你感兴趣的模型镜像
您可能感兴趣的与本文相关的镜像
Qwen-Image
图片生成
Qwen
Qwen-Image是阿里云通义千问团队于2025年8月发布的亿参数图像生成基础模型,其最大亮点是强大的复杂文本渲染和精确图像编辑能力,能够生成包含多行、段落级中英文文本的高保真图像
8014

被折叠的 条评论
为什么被折叠?



