- A very simple and easy to use qr code style generation library
- Free combination of qr code style
- Set the space of the outer circle of the logo
Bitmap logo = BitmapFactory.decodeResource(getResources(), R.mipmap.logo);
ImageView logo_iv = (ImageView) findViewById(R.id.logo_circle_space_iv);
Bitmap targetBitmap = QRCodeStyle.Builder.builder()
.setQr(BitmapFactory.decodeResource(getResources(), R.mipmap.qr))
.setLogo(logo)
.setCircle(true)
.setSpace(5)
.build().get();
logo_iv.setImageBitmap(targetBitmap);
- Set Mask
Bitmap mask = BitmapFactory.decodeResource(getResources(), R.mipmap.logo);
ImageView logo_iv = (ImageView) findViewById(R.id.mask_iv);
Bitmap targetBitmap = QRCodeStyle.Builder.builder()
.setQr(BitmapFactory.decodeResource(getResources(), R.mipmap.qr))
.setMask(mask)
.build().get();
logo_iv.setImageBitmap(targetBitmap);
- Set Bg
Bitmap bg = BitmapFactory.decodeResource(getResources(), R.mipmap.bg);
ImageView logo_iv = (ImageView) findViewById(R.id.bg_iv);
Bitmap targetBitmap = QRCodeStyle.Builder.builder()
.setQr(BitmapFactory.decodeResource(getResources(), R.mipmap.qr))
.setBg(bg)
.build().get();
logo_iv.setImageBitmap(targetBitmap);
- All examples are shown in MainActivity, for reference
compile 'com.wjj.easy:qrcodestyle:1.0.0'
- QQ 928320442
- Email[email protected]