2017-01-18 08:40:05 +00:00
< img src = "icon.png" align = "right" / >
2017-01-18 09:11:52 +00:00
# Encoding-with-zxing Android [](https://github.com/MelDiSooQi/Encoding-with-zxing)
Encoding with zxing (Qr code, PDF 417)
2017-01-18 08:55:25 +00:00
> A curated list of encoding with zxing README
2017-01-18 09:08:13 +00:00
## Supported Formats
| 1D product | 1D industrial | 2D
| ---------- | ------------- | --------------
2017-01-18 09:13:31 +00:00
| | | QR Code
| | | PDF 417 (beta)
2017-01-18 09:08:13 +00:00
2017-01-18 08:55:25 +00:00
- [Berif ](https://github.com/MelDiSooQi/Encoding-with-zxing ) - Project logo. Clear description of what the project does. Build badges. Demo screenshot. Simple install and usage sections. Includes an examples section with common uses.
2017-01-18 08:40:58 +00:00
2017-01-18 08:37:07 +00:00
##Add library dependency
2017-01-18 09:16:12 +00:00
### installation
2017-01-18 19:57:39 +00:00
- First add encoding_zxing_lib in your project.
2017-01-18 19:58:14 +00:00
- Second add this line in (Project Settings) settings.gradle
2017-01-18 19:57:39 +00:00
> include ':encoding_zxing_lib'
- Then Add this line in app gradle.build
2017-01-18 09:17:23 +00:00
2017-01-18 09:16:12 +00:00
> compile project(path: ':encoding_zxing_lib')
2017-01-17 16:32:06 +00:00
2017-01-18 08:37:07 +00:00
##To generate encode of QrCode
2017-01-17 16:32:06 +00:00
Example -1
2017-01-18 09:21:02 +00:00
EncodingZxing.encodeToQrCode(text, size);
---------------------------------
EncodingZxing.encodeToQrCode("Encoding with zxing", 500));
---------------------------------
imageView.setImageBitmap(EncodingZxing.encodeToQrCode("Encoding with zxing", 500));
2017-01-17 16:32:06 +00:00
Example -2
EncodingZxing.encodeToQrCode(text,
width,
height,
dotColor,
backgroundColor);
---------------------------------
2017-01-18 09:19:59 +00:00
EncodingZxing.encodeToQrCode("Encoding with zxing",
400,
400,
Color.BLACK,
Color.WHITE);
2017-01-17 16:26:54 +00:00
2017-01-18 08:37:07 +00:00
##To generate encode of PDF417
2017-01-17 16:26:54 +00:00
2017-01-17 16:35:58 +00:00
Example -1
2017-01-18 09:21:02 +00:00
EncodingZxing.encodeToPDF417(text, size, dotColor, backgroundColor)
---------------------------------
imageView.setImageBitmap(EncodingZxing.encodeToPDF417(text, size, dotColor, backgroundColor));
---------------------------------
imageView.setImageBitmap(EncodingZxing.encodeToPDF417("Encoding with zxing", 500, Color.BLACK, Color.WHITE));