Shows the ideal way for a game to interact with system UI, hiding
the status bar and nav bar while being played, making them visible
when paused or otherwise interacting with controls of the game,
and determing layout of game controls to not be covered by the
status bar or nav bar.
Change-Id: Ia192c31321113d81f96c06c7a69a06ef72c4682a
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
The demo used an obsolete/wrong tag name for TransitionSet
(set, instead of the correct transitionSet). This caused the demo
to crash at runtime and to produce incorrect example docs in the
Transition reference pages.
Issue #11346546 Transition ApiDemo crashes
Change-Id: I12142870ac4f7412e5809b9cdad3ca3015449d77
- Content browser that hides nav bar.
- Translucent bars.
- All the new flags on the direct system UI tweaker example.
Change-Id: I16fc8da252174db1ed45b0f60c37d6cbb8d7f13c
Many of the original animation demos still had hardwareAccelerated="false"
in their activity tag. This was originally necessary due to the state of the
hw renderer in 3.0, but is no longer necessary.
Also, added documentation to the new Transitions demo.
Issue #7902583 Update animation ApiDemos to use hw acceleration
Change-Id: I7add3acc10d8fa36648e1869a3ec91088b2e199d
New demo in ApiDemos: animations/Simple Transitions
Issue #10460684 KLP API Review: android.view.transition and android.animation
Change-Id: I2c376343c2b945240bc5f3619786e9354a8c1a10
Adds a sample application which uses the AndroidKeyStore and
KeyPairGenerator for AndroidKeyStore.
Bug: 8608817
Change-Id: Iec78a74461dc259e4080ed1fab7d923593fcdf75
This is an actually realistic implementation of a
video player. It's still delibrately simple, but it's
not outright broken. We now have our own media controller
since that is the only way to get something that actually
works, we use system UI flags to hide nav/status bar when
playing, we use the new TransportController APIs to go
into a formal playback state where we take audio focus.
Change-Id: I19ac171483637b8ee94c9c07aea39c11748cbc46
This serves as a complete, formal layout, with attributes
and all that good stuff. Intended for use as sample code
in the java docs.
Change-Id: Ic45b9387d724bf574e2bfb8970b26c7b47fc0a2b
- 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
Add one of the CTS test videos so the demo works out of the box, and
make the video fill the screen instead of hardcoding it to a tiny size.
Change-Id: Ie26a4ae0e186fe966d0679b088492a0c7d035713
Include a GridLayout version of the "Simple Form" example provided in the
LinearLayout and RelativeLayout demos.
Make the existing Form demo work on all devices and orientations
(it was previously too wide for portrait mode).
Change-Id: Ia01d49230bc3ef3d2e70bc34e936c8b4b421b796