- 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