Commit Graph

260 Commits

Author SHA1 Message Date
Dianne Hackborn
3e8a010ab6 Merge "Add API demo for sharing." 2015-03-16 18:05:59 +00:00
Dianne Hackborn
aa9e46deb6 Add API demo for sharing.
Change-Id: I8f65979ab67297932e82f26eba8c4729725ee6d5
2015-03-12 11:20:52 -07:00
James Cook
5c42f75896 Re-enable the undo demo activity
The UI now shows these input fields:
* A normal field with buttons for programmatic SetText, append and insert.
* A field with undo disabled.
* A field with a length limit (via InputFilter).
* A field with a credit card input formatter (via TextWatcher)

Bug: 19332904
Change-Id: I41df56c84dd5232918e7ee5e6ed5874b2023cc78
2015-03-10 17:00:19 +00:00
Cheuksan Wang
cfb685d52e Send and download MMS via content provider instead of PDU bytes.
Change-Id: Ib5a93d07799c9e14fea8be820c6bd4bc7ae8be3a
2014-09-09 16:53:38 -07:00
Ye Wen
ab56bf9812 Revert "Enforce READ_SMS permission in file provider used by MMS API demo"
This reverts commit 3060e54b6e.

Change-Id: I430f84f2694511130879eefb11311fe7d2565f43
2014-09-05 21:23:47 +00:00
Ye Wen
3060e54b6e Enforce READ_SMS permission in file provider used by MMS API demo
b/17403930

Change-Id: I7cc17f53c95d3779e43003538b8c833369c5a182
2014-09-05 11:40:48 -07:00
Julian Odell
9b00ec9132 Bug 17262099: MMS API changes (multi-project).
Change API demo to use new content provider based MMS API.
Rebased and merged with TOT.

Change-Id: Ia1b815f2904ccfc9962960369f85e1f2de830927
2014-09-03 13:13:33 -07:00
Dianne Hackborn
9f744759d1 Work on issue #17011123: Hit Back/Recents button when in Recents...
...without interacting with any of the Recents items should not
bring Home back to top

Add API demo for nav bar navigation.

Change-Id: I8b45f2bc0b554da19957ad723abe7cf4a14ee5a1
2014-08-21 17:58:05 -07:00
Tom Taylor
f1c2891a00 Merge "MMS API: ApiDemos demo app" into lmp-dev 2014-08-20 18:43:12 +00:00
Michael Wright
d17804f530 Add MediaProjection samples
Change-Id: I630900bdcfecc7f1c57b406a0bae09a0e917124a
2014-08-05 19:59:01 +00:00
Ye Wen
69291d63e4 MMS API: ApiDemos demo app
b/14095333

Change-Id: Ieffbc559f636fe1c556221e23533d8ba5ac74cb6
2014-08-01 13:46:19 -07:00
Alan Viverette
974dc59d63 Update ApiDemos themes, remove targetSdkVersion
Change-Id: Iba8d56a1cde52d082e7a5111874460e6120b011e
2014-07-24 13:47:07 -07:00
Chris Craik
7007035ef1 Add Shadow demos to ApiDemos
bug:15724818
Change-Id: I22e3faaee9bb1d46f9c9f16cac38069071e1fc0b
2014-06-19 11:06:28 -07:00
Alan Viverette
6adc4266c8 Material theme
BUG: 15467097
Change-Id: Icea9710a8733a0c79c114a56faa61db99b9723bd
2014-06-06 15:25:30 -07:00
Jeff Sharkey
4c4580e5f6 Add code to exercise DocumentsContract.
Also fix broken "atLeastKitKat" definition.

Change-Id: I7c82ebb7b230ac66da3194412c845ff0c2b72f85
2014-04-22 22:03:37 -07:00
George Mount
f93d490356 Use new Quantum Paper Activity Transitions API.
Change-Id: Ia487e02e8cb7a90bd14b0e09392eddac5c1a06ec
2014-04-17 08:56:09 -07:00
Alan Viverette
c69dbd9404 Update ApiDemos to use API 20, default theme
Change-Id: I74f47722093bb2dd72b506603afcd5c300d53431
2014-04-08 15:31:33 -07:00
Alan Viverette
b020f1cbf5 Fix numbering in API Demos
Change-Id: Ia2983f96c3cd1b48bac9941465adf39989536794
2014-04-07 16:22:44 -07:00
Alan Viverette
f210b1e37f Remove deprecated Gallery and ImageSwitcher from API Demos
Change-Id: Ib6b1f23a368d042674aabd01361f76df2a8e5280
2014-03-26 14:13:36 -07:00
Alan Viverette
f37ac8560a Clean up DeviceDefault style in API Demos
Change-Id: I00b638cb99ef55accfc900758b8445765c8e6d69
2014-03-26 12:23:07 -07:00
Alan Viverette
2178063c52 Temporarily taking over API Demos v19 for Quantum demos
v19 has been moved to v99 until we have an API rev for L release.

Change-Id: I864ef7962ce5be6f072bfe9866c9f93f12ea438e
2014-03-03 14:08:19 -08:00
George Mount
4769ecc773 Support changes in Scene Activity Transition API redo.
This reverts commit 1b3da3748f.

Change-Id: I84fd15c154a404ed10971025b7bb33f58a344965
2014-02-26 15:32:10 -08:00
George Mount
1b3da3748f Revert "Support changes in Scene Activity Transition API."
This reverts commit 8ad5ffb461.

Change-Id: I3277537f7cc6a033ea1fc2948529f96c1dbc30e8
2014-02-26 08:52:12 -08:00
George Mount
8ad5ffb461 Support changes in Scene Activity Transition API.
Change-Id: Ia19b7def404f32ea5f68d2fece04dcd5ce615a42
2014-02-25 11:12:26 -08:00
George Mount
77dfe829d1 Cross-Activity Scene transitions API demo.
Change-Id: Icd644902b61ca2f03f21045bfad3a758075fb7cc
2014-02-04 15:53:02 -08:00
George Mount
bfe084a225 Revert "Add Trim Path API demo."
Bug 12489442

This reverts commit fad0b21946.

Change-Id: I527d0927bf891fc9570e860c158a352e1767474c
2014-01-31 07:23:11 -08:00
George Mount
ca2b0f8c62 Merge "Add PathAnimations ApiDemos." 2014-01-31 15:21:10 +00:00
Chet Haase
a6e59a9d7f Add controls demo with default theme
Change-Id: I95cd31cd93e77b17aa2bcacf6e6140aaba719217
2014-01-28 14:13:31 -08:00
George Mount
d219b22e53 Add PathAnimations ApiDemos.
Change-Id: I9b064032cd503450ba6d8c93453a4ab6c2163686
2013-12-13 22:31:50 +00:00
George Mount
fad0b21946 Add Trim Path API demo.
Change-Id: I1183413cf5a788950fdde52c26ddf737af921c5c
2013-12-10 07:50:42 -08:00
Dianne Hackborn
49ead05468 am 1437d2c3: am 59e6f5d9: am 18159037: Add API demo for game style system UI interaction.
* commit '1437d2c372f4d88c4f6c5aabfa460ce8fefa3299':
  Add API demo for game style system UI interaction.
2013-12-05 18:19:41 +00:00
Dianne Hackborn
18159037a4 Add API demo for game style system UI interaction.
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
2013-12-04 16:10:30 -08:00
Svetoslav Ganov
f9c86a50ff am c100e53e: am 79efac6b: Merge "Add print samples to the ApiDemos app." into klp-dev
* commit 'c100e53e42f8f4fbbd09cf5d5a7db83bb7cd48cd':
  Add print samples to the ApiDemos app.
2013-10-30 14:11:36 -07:00
Svetoslav Ganov
42c6250c9d Add print samples to the ApiDemos app.
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
2013-10-30 12:12:55 -07:00
Svetoslav
659b59aba9 am 22af8556: am 40bea547: Merge "Adding an API demo for how to implement printing in an app." into klp-dev
* commit '22af8556df8d0c40126e3e693c0171c8bf7770d4':
  Adding an API demo for how to implement printing in an app.
2013-10-29 23:45:44 -07: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
Dianne Hackborn
f554d32aa6 am e0dce67f: am dbe4e751: New system UI API demos.
* commit 'e0dce67f030a9566e1111082392d8cd0d0e47802':
  New system UI API demos.
2013-10-14 10:51:54 -07:00
Dianne Hackborn
dbe4e751b7 New system UI API demos.
- Content browser that hides nav bar.
- Translucent bars.
- All the new flags on the direct system UI tweaker example.

Change-Id: I16fc8da252174db1ed45b0f60c37d6cbb8d7f13c
2013-10-11 16:17:58 -07:00
Erik Gilling
aeac590137 am 1c415cbb: am 438ea813: Add Consumer IR ApiDemo
* commit '1c415cbb54621f5e86dfc8364a29eaf9e35c67b5':
  Add Consumer IR ApiDemo
2013-09-11 17:22:57 -07:00
Erik Gilling
438ea813f1 Add Consumer IR ApiDemo
Change-Id: I4eb27b2ba6a46c27962eaa5e09d3e65939b64c0a
2013-09-10 21:07:58 -07:00
Alex Ray
e80479394d Merge "Remove broken os.Sensors demo" 2013-09-10 06:28:46 +00:00
Chet Haase
f3dbdc66d7 Minor fixes to animation ApiDemos
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
2013-09-05 12:57:33 -07:00
Alex Ray
78b50d1aa3 Remove broken os.Sensors demo
Change-Id: I379925051521e615f057d1f81ecffddb95be7899
2013-09-05 02:14:30 -07:00
Dianne Hackborn
0a98bfeda6 Fix build -- undo manager not yet public.
Change-Id: I2d1d59e27b1bbe499421aa2312d8220d12ba18fb
2013-09-04 19:04:56 -07:00
Chet Haase
ea3e7cdb90 New demo for transitions feature
New demo in ApiDemos: animations/Simple Transitions

Issue #10460684 KLP API Review: android.view.transition and android.animation

Change-Id: I2c376343c2b945240bc5f3619786e9354a8c1a10
2013-09-04 14:20:20 -07:00
Alan Viverette
b468ddad5d Merge "Remove AccessibilityNodeProvider sample code." 2013-08-02 20:14:24 +00:00
Dianne Hackborn
82c9189430 Add API demo for scheme specific intent filters.
Change-Id: I9363d5098e97cc035478849755d8b9a77a41e7c0
2013-06-12 18:08:54 -07:00
Alan Viverette
4e8b0858c8 Remove AccessibilityNodeProvider sample code.
This code has been superseded by the ExploreByTouchHelper class in the
support-v4 library.

Change-Id: I3ff499e3c5f404c9252d967d1a3cb4ff999dfdfb
2013-05-29 17:20:12 -07:00
Dianne Hackborn
f8e68ca19f Add "do nothing" receiver.
For testing overhead of empty processes.

Change-Id: I14803cb6b9c434bb1b1c4a17d3811f34a4063bdc
2013-05-28 15:58:48 -07:00
Dianne Hackborn
f25ca509d5 New API demo for UndoManager.
Change-Id: Ic49211c771db275f27ceefa5372b005a357fce21
2013-05-07 15:05:15 -07:00