summaryrefslogtreecommitdiff
path: root/samples/ApiDemos/src/com/example/android/apis/app/PrintCustomContent.java
Commit message (Collapse)AuthorAgeFilesLines
* Add print samples to the ApiDemos app.Svetoslav Ganov2013-10-301-2/+2
| | | | | | | | | | | | 1. Added a sample for printing a bitmap. 2. Added a sample for printing an on-screen WebView. 3. Added s sample for printing an off-screen WebView. 4. Fixed a bug in the custom layout print sample. Change-Id: I35b2bbf8c7fd9bc39be795b1f793d9ea7bdfc8a0
* Adding an API demo for how to implement printing in an app.Svetoslav2013-10-291-0/+562
This is a very comprehensive code sample in which: 1. Layout based on the selected print options is performed. 2. Layout work is performed only if print options change would change the content. 3. Layout result is properly reported. 4. Only requested pages are written. 5. Write result is properly reported. 6. Both Layout and write respond to cancellation. 7. Layout and render of views is demonstrated. Change-Id: I0179b025b286f0a511cb2268da18c729c66874ba