Commit Graph

18 Commits

Author SHA1 Message Date
Vladislav Kaznacheev
603a758caf Use menu shortcuts in ApiDemos
Add alphabetic shortcuts to the menu in ActionBarUsage. This mirrors
what is already present in a similar support lib demo.

Bug: 31045453
Test: run com.example.android.apis.app.ActionBarUsage on a device
  with keyboard shortcuts enabled (such as Chromebook). Action menu
  items should display keyboard shortcuts.

Change-Id: I9e6b04df8e2a6cbc728cb60b3706d054521da7cb
2018-04-17 23:02:47 +00:00
Alan Viverette
ec7c91da60 Add more submenus to ApiDemos submenus sample
Change-Id: I42d700732758db2829d3c3f885f00eb5125a931c
2015-10-22 17:52:12 -04:00
Svetoslav
0b73e61c6c Adding an API demo for how to implement printing in an app.
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
2013-10-29 22:59:03 -07:00
Jeff Brown
66dc70ff47 Add a demo for using Presentations with the MediaRouter.
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
2012-10-25 20:14:32 -07:00
Dianne Hackborn
adee1fdf63 Update Full Screen Modes to demostrate more modes.
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
2012-03-30 17:13:06 -07:00
Svetoslav Ganov
30073fb13b Adding a code sample for how to write a custom action provider.
NOTE: This change does *not* affect the system image rather only the SDK.

bug:5499856

Change-Id: I589ed412b72e94b21dbe1f069006c7c527a06c71
2011-10-21 18:30:40 -07:00
Svetoslav Ganov
ddece2d84d Adding ActionProvider demo.
Change-Id: If0f540cd796ced27f392f1c31d20ab5ab34e5c3e
2011-07-14 18:00:14 -07:00
Scott Main
6b7558c9a5 revise ActionBar samples to include an action view using SearchView,
also modify the sub-menu item to something that makes sense
and demonstrate how to invalidate the action bar and redraw it

Change-Id: I84f5414c74ab47f7657c226daa2334e7e4449e91
2010-11-29 19:01:32 -08:00
Anirudh Dewani
65b95cbba0 am 35dfdb6f: am dbe66332: Extended camera preview to switch between multiple available device cameras
* commit '35dfdb6fc37cf72aab09713ce59bd8c6ec571fab':
  Extended camera preview to switch between multiple available device cameras
2010-11-29 16:04:36 -08:00
Anirudh Dewani
dbe66332e2 Extended camera preview to switch between multiple available device cameras
Change-Id: I8e97d6182bf02cba29ae3bc9f1a7ef21a277117e
2010-11-26 02:28:11 +05:30
Adam Powell
6a89a9ead0 Added demo for ActionBar display options
Change-Id: Ib916c36c0d3f8866b4f7f3a616fe15dcf0ca007f
2010-10-29 15:10:57 -07:00
Amith Yamasani
ed6ae47c87 SearchView examples 2010-09-14 18:05:13 -07:00
Adam Powell
72187805c3 Added simple demos for ActionBar
Change-Id: Ie0dbf0c2bad61f75825e832305205811f49459d1
2010-08-06 14:42:20 -07:00
Adam Powell
a19298d0cf Added PopupMenu demo
Change-Id: Ib4ed4203dc78a4706963cb36e7bac7ec58a5747a
2010-08-04 11:37:05 -07:00
Adam Powell
d8e26b836a List selection mode demo
Change-Id: I0a29551c8bc5fa537255d2a6307fc70bead3242d
2010-08-02 10:02:28 -07:00
The Android Open Source Project
52d4c30ca5 auto import from //depot/cupcake/@135843 2009-03-03 19:29:09 -08:00
The Android Open Source Project
d4aee0c0ca auto import from //depot/cupcake/@135843 2009-03-03 18:28:16 -08:00
The Android Open Source Project
5c11852110 Initial Contribution 2008-10-21 07:00:00 -07:00