部分参考其他人的博客代码 敬请理解 添加根据ImageViewd的大小 自动适配二维码的宽高 自己下载 zxing jar 放到自己的工程函数库里面 http://write.blog.csdn.net/Only__One/snippet_file_0.txt