Repository files navigation Print Example using the Clover Android SDK
Be able to connect to a Clover Device via Android SDK (PritnerConnector)
Know how to design custom layouts
Create a resource layout for the receipt
Add a ScrollView with a Linear Layout inside (needs to be a Scroll View to print elements off screen)
Give the Linear Layout an ID, this will be what we insert the receipt elements into and what we ultimately print
In your print activity, inflate the layout from the last step (It has to be attached to a root in order to print)
Use the LayoutInflater (if printing from another activity) and attach the receipt to a viewgroup
Grab the whole receipt area and store it in a View
Print the receipt
Use an AsyncTask
Specify the printer
Build the print job using ViewPrintJobBuilder and broadcast the request
Target specific printers
Spruce up print screen
Use a table layout to organize line items
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.