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
22 lines
842 B
XML
22 lines
842 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2013 Google Inc.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<item android:id="@+id/menu_print"
|
|
android:title="@string/print"
|
|
android:showAsAction="never" />
|
|
</menu>
|