Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to show numbers under a one-dimension barcode generated by ZXing?

I'm currently using ZXing in my Android app to generate a one-dimension barcode (EAN_13 and CODE_39). The result is looking good but I'd like to display numbers below the barcode, like that: enter image description here

Is it doable?

like image 770
Romain Piel Avatar asked Feb 06 '12 16:02

Romain Piel


1 Answers

You could simply just add a TextView aligned below|center of the xzing barcode, and put the numbers in there.

If you really care about the specific look (with the numbers aligned slightly inside the barcode) - you could set a white background to the TextView, and use a negative alignment to move it up slightly into the barcode.

Don't know answer if xzing supports what you want. Good Luck.

like image 101
Booger Avatar answered Nov 15 '22 19:11

Booger