The framework Preference APIs are deprecated, so these samples are
misleading and should be removed.
Trying to submit again now that the relevant sample tags have been removed.
Bug: b/119602280
Test: n/a
Change-Id: I7efb509f5c938122575cf4177b50872bfc089d00
This reverts commit 946280d6ce.
Reason for revert: Breaking builds due to doc generation using these samples
Change-Id: I7caf9792e84e0e1eedea4a7294a321c684be2d5c
The framework Preference APIs are being deprecated, so removing the
samples will help avoid confusion.
Bug: b/119602280
Test: n/a
Change-Id: Ib3a2c38b8fbb0f1afc9ef6a35963def46ee931f7
In particular, we have an example of a foreground-service PendingIntent
triggered by a 15-second delayed alarm following a button click. This
is enough time to exercise use cases like swiping the app out of recents
before the alarm fires, therefore entering the "starting a fg service
when the app is not in a fg state" flows.
Bug: 73559697
Test: this is it
Change-Id: If57908ab852c7a0bfab7bb1da8eda0a47493fc6b
1) Remove the "Refresh package" demo. This was using Intent.EXTRA_ALLOW_REPLACE, which was deprecated in API 16.
2) Java code cleanup.
Test: Manually.
Change-Id: I0cbff934ca223a3fe73a1044ed68f3e079be8237
Basically this is to have sample code to include in the java docs.
Bug: 37544153 API Review: JobWorkItem
Test: none
Change-Id: Ie4ed3ce4af8239010da2647fab00ed2aadb1d348
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
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
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
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
...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