Change Android PhoneGap Android UI UI

I am currently using the open source ZF library barcode scanner in my Android project. Problem im facing scan interface

When I launch the Scan window, it takes up the whole screen, and I'm not sure how to set it up. I would like to add a "Back to back" button in case the client wants to scan or even better add a menu bar so that it is consistent with all other pages in my application?

How to add basic HTML elements to the crawl window?

+3
source share
1 answer

If you simply invoke BarcodeScanner using intent, you have no control. However, if you embed Java code from the BarcodeScanner application in your application, you have all the java code and xml resources available and you can edit them as you like. All this will be Java and native material for Android, though .. not html.

If you embed a layout,

http://code.google.com/p/zxing/source/browse/trunk/android/res/layout/capture.xml

and the activity you want to change is

http://code.google.com/p/zxing/source/browse/trunk/android/src/com/google/zxing/client/android/CaptureActivity.java

If you add a button to the layout and end the call in the OnClickListener that you configured in action, it will be back as you wish.

0
source

All Articles