To print we create an off-screen WebView but do not destroy it
immeidately after printing. WebViews are somehow expensive and
we do not want to keep them around more than needed.
Change-Id: Ic9c78994e0c96d4d08c0e318c459acddd2e5a652
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
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
- Buttons for showing/hiding action bar and system UI
in the basic action bar demo.
- New system UI demo that uses a non-overlay action bar.
Change-Id: Id3fbaa77365476489c558a2a43855a01f383551c
New feature in App/Activity/Rotation Animation for overriding
default rotation animation with crossfade or jumpcut.
Change-Id: I3cb3cdb26770e6c7d040f4492eb02149af73b757
Improved the documentation and robustness of the samples.
Modified the existing Presentation sample to use the new
DisplayManager API for querying displays that support a
particular category of uses.
Bug: 7409073
Change-Id: I2a19afa373c408c2bcbaa633370480b717630088
Added three ApiDemos for secure surfaces. One for Activity,
one for Dialog and one for SurfaceView. The mechanism is the
same in each case but the API is a little different.
Bug: 7368436
Change-Id: I78bc2a456b4c0f1a553120d72f433095ba7e038c
Follow changes to FragmentTabManager to continue to work
correctly with it. Fix the code in the base API demo (which
can't use FragmentTabManager) to work correctly.
Bug #7232088: ListView saved state being lost in some cases
Change-Id: Ib7ba1ab20ff00f2cc95c9f6024ab94783237c9be
Store which Displays are presenting, their images and their
background colors. That way the don't change between onPause
and onResume.
Change-Id: I01328583ef309bf12e7f5750aa4abea50f847a99
Also tweak the cursor loader samples to filter out query
callbacks that don't change the filter, to avoid restarting the
loader on a configuration change.
Change-Id: Iac9293fed45e127698be59262d68b0b59a8ec9ce
UI is now a set of check boxes to toggle the various modes.
Also add new API demos for two typical implementations using
system UI flags: a content browser and a video player.
Change-Id: If93659343cfc42b903b18997a5a0a04ee10e8343
Lots of clean up on the messaging notification sample to show the real
correct way to do things. Also mark up a bunch of the sample for use
in the documentation.
Change-Id: I3a29a944c2971e142c33b29aff94b1ba0b40ae0e
1. Moving Accerssibility Service sample into ApiDemos since
we are putting all accessibility samples there.
2. Fixed regressions (mainly due to adding new event types)
in the Accessibility Service sample.
3. Updated the Query Window Content sample to have some
instructions and to work with touch exploration.
Change-Id: I226ac4130f7f8cae47bb52cbdeab9f104cfaba40
1. Fixed a bug the the way the URI was set to the
intent.
2. Added code to copy a private raw resource to a
publicly readable file that is to be shared.
Change-Id: Ib7ee172b2a4a890ce77911d0ef1c3ea3b24e69c9