Commit Graph

270 Commits

Author SHA1 Message Date
Dianne Hackborn
9302998b13 Add API demo for running multiple foreground services.
Change-Id: I44435f6e7750ccbbadf5e293dd10069c6cef94a4
2016-08-01 17:52:18 -07:00
Michael Wright
71620c8898 DO NOT MERGE Rename PointerIcon and Pointer Capture APIs
This is a response to API council feedback.

Bug: 26830970
Change-Id: I19d3919dc201fdf2b949074f02490669b4a5d775
2016-05-17 20:03:23 +01:00
Dianne Hackborn
a4a1bb7dca Add sample for observing only photos changes.
Change-Id: I954fb466fb21d73f88b1dd1bc86eac617a628073
2016-03-21 13:31:34 -07:00
Vladislav Kaznacheev
2ba9c45dc0 Add example of pointer icon resource reference to ApiDemos
Change-Id: I3e88a097725b69aefd38169c0b37d64ebd6ddec5
2016-02-09 00:37:12 +00:00
Alan Viverette
10150941ff Fix ApiDemos layout
Change-Id: I67b15d38a8d947d30ce9c3789c5000c7850861d2
2016-02-05 12:49:44 -05:00
Alan Viverette
47683023d5 Fix duplicate IDs in Material controls demo
Change-Id: Ic87b4ae520ba22387e4902bdc6b841b635921080
2016-02-05 12:41:56 -05:00
Jun Mukai
6cb3668322 Introduce the examples of pointer shape API.
Change-Id: Ib0be39d560fbc00db661f639a02c4df2e2c1867b
2016-02-03 14:54:44 -08:00
Dianne Hackborn
e3ad7fa9ac Add API demo for monitoring media content.
Both the classic ContentObserver API, and the new
JobScheduler API.

Change-Id: I2011389abb2f863e810ccc9012fb3c53c93c76fd
2016-01-22 11:08:37 -08:00
Alan Viverette
bfd633ad65 Update ApiDemos control samples for Material
Adds examples for a variety of Material-only control styles including
underlined Spinner and discrete SeekBar. Groups controls into cards.

For the old-style controls, moves some run-time setup tasks into XML.

Bug: 19352193
Change-Id: Ibb1c82ac6ecaca3b93f3acfd65ef67cd9784fef4
2016-01-07 16:41:10 -05:00
Dianne Hackborn
1cd11bc0ff Extend foreground service test to demonstrate doze behavior.
Change-Id: I81162b6a309a09c1041b71fce1e9a8335afa5b53
2015-12-02 14:17:08 -08:00
Teng-Hui Zhu
6324dbbae2 Add horizontal indeterminate progress bar into ApiDemos
Change-Id: Iae72019d5ecdfbc710d01bd341b6de058d3b665a
2015-11-03 15:08:20 -08:00
Teng-Hui Zhu
ac7c153cce Remove ProgressBar4, it is deprecated from Lollipop
Change-Id: Ia2a038a973eb6c6021c73d157410be6e64c2b1a7
2015-11-03 13:57:44 -08:00
Alan Viverette
93e094856e Add number picker to ApiDemos
Change-Id: I33dc7a01f543cb5308e810f508bedc3d25eb366a
2015-09-18 09:43:08 -04:00
Jeff Brown
86cd5e82b9 Expand Presentation demo to test 4K mode switches.
Bug: 18241736
Change-Id: I5bedb656696bc3dfc756df35dd326ff3524152c1
2015-06-09 19:52:17 -07:00
James Cook
3a7f265938 Merge "Add more text samples to ApiDemos, move to Views/Text" into mnc-dev 2015-06-08 20:08:34 +00:00
Alan Viverette
75f0029e5f More seek bars in ApiDemos
Change-Id: I4a868da4ebfd527609d9983d5236d89624c2c011
2015-05-29 16:24:22 -07:00
James Cook
6a57fe0646 Add more text samples to ApiDemos, move to Views/Text
There are many more variants of TextView and EditText than are shown
in Views/Controls. Add new pages with some of the variants and move
all the text examples to Views/Text.

Bug: 21518721
Change-Id: Ie839e9c964d019ffbe8be2170e124276b087916d
2015-05-29 14:50:40 -07:00
Wale Ogunwale
e6dc9d0ff5 Added no transiton animation option to animation demos.
Bug: 20823935
Change-Id: Ie43fb14c1df5a4216a8523761ea4bd30da5a66e9
2015-05-14 17:39:10 -07:00
Robin Lee
d72e5b22bb Fix keystore demo layout for Nexus 7
The plaintext and ciphertext fields weren't showing up on Nexus 7
(possibly other devices too) because of some unresolvable dependencies
between UI elements.

Also stopped leaving these fields editable when no key was selected
and corresponding action buttons were switched off.

Change-Id: I32ed3e2f24c134504a02db6fdfb9905ec147fbdd
2015-05-11 13:43:56 +00:00
Clara Bayarri
9326316443 ApiDemos: Add a sample for Text Processing intents.
Change-Id: Ic2b333a6c83d24e73216daa69e68f473e33d103f
2015-04-09 19:28:54 +01:00
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
Michael Wright
bcbb01686c Have the MediaProjection sample use the callback.
Bug: 18393320
Change-Id: I482ed9cde5444d62a5486f4ca91e3dc6b441e673
2014-11-21 14:11:52 -08:00
Alan Viverette
b4ced6163b Update alert dialogs in ApiDemos for Material theme
BUG: 17415772
Change-Id: Ifc1de793458f678a3c40b734d5ab08b2eb382f7a
2014-09-07 17:45:26 -07:00
Alan Viverette
fe3ba7fbc9 Add device default light and dark dialogs to ApiDemos
Change-Id: I538c2cfb975828cd0e1e065d4cf5589e573307d5
2014-08-28 16:39:27 -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
b6235f6e52 Add switches to the Controls sample in ApiDemos
Change-Id: I754458204adc6a66a327e85d4e5beb8de7f5c27c
2014-07-29 16:30:12 -07:00
Adam Lesinski
a75e45ab61 Merge "Fix incorrect external resource creation" 2014-06-26 05:59:24 +00:00
George Mount
c580adec26 Revert "Revert "API Review: Change View viewName attribute to transitionName.""
This reverts commit f4138cbcfc.

Change-Id: Id5531f7508b22cf0242a5bef063423d932eb104e
2014-06-23 08:18:46 -07:00
John Reck
da59fc09c9 Merge "Revert "API Review: Change View viewName attribute to transitionName."" 2014-06-23 14:51:00 +00:00
John Reck
f4138cbcfc Revert "API Review: Change View viewName attribute to transitionName."
This reverts commit 7033a59303.

Change-Id: Ibc8ff91f73b69177ad40890cea36f1b9903e5505
2014-06-23 14:51:47 +00:00
George Mount
f4a02fdb95 Merge "API Review: Change View viewName attribute to transitionName." 2014-06-21 03:15:09 +00:00
George Mount
7033a59303 API Review: Change View viewName attribute to transitionName.
Bug 15548520

Change-Id: Ie1c9fedfb1ff7e3b4e16435f71fc9df4b9107636
2014-06-20 07:38:06 -07:00
Adam Lesinski
0f2beb163a Fix incorrect external resource creation
ID resources were being created in the external 'android' package.

Change-Id: I35b5b2bb03bb093ade0c3c5dd1f22bd1269fdc6b
2014-06-19 16:29:56 -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
6fcf326d1a Add list navigation to API Demos
BUG: 15566102
Change-Id: I4c1dd13d5ac5502d6d3f879ce916b09d81338940
2014-06-12 12:56:36 -07:00
George Mount
fb8e37e754 Changed sharedElementName to viewName.
Bug 14624181

Change-Id: Ia822e252030d94c0b73f41914656985656bc5efa
2014-05-12 11:50:35 -07:00
George Mount
b3059f8744 Use framework Transition MoveImage and Slide
Change-Id: I3c55ee699288f1945ae0a23dfad2ae4fd9caa9a0
2014-04-07 09:13:55 -07:00
Alan Viverette
f210b1e37f Remove deprecated Gallery and ImageSwitcher from API Demos
Change-Id: Ib6b1f23a368d042674aabd01361f76df2a8e5280
2014-03-26 14:13:36 -07:00
George Mount
016fbf2c60 Undo inadvertent change to Transitions API demo.
Change-Id: Ib986f1dd560291896c5e5619c7af9947ee4efaf1
2014-03-13 10:27:03 -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
d219b22e53 Add PathAnimations ApiDemos.
Change-Id: I9b064032cd503450ba6d8c93453a4ab6c2163686
2013-12-13 22:31:50 +00:00