Commit Graph

646 Commits

Author SHA1 Message Date
Romain Guy
a161dd2994 Add sample code for the new widget android.widget.TextClock
Change-Id: I0b65fcc35db8d9f15d9b7c4ada0658d806a601b8
2012-10-31 20:35:07 -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
Jeff Brown
c875f9321a Add ApiDemos for secure surfaces.
Added three ApiDemos for secure surfaces.  One for Activity,
one for Dialog and one for SurfaceView.  The mechanism is the
same in each case but the API is a little different.

Bug: 7368436
Change-Id: I78bc2a456b4c0f1a553120d72f433095ba7e038c
2012-10-24 12:56:50 -07:00
Dianne Hackborn
7263dad223 Update API demos to match new tab interaction.
Follow changes to FragmentTabManager to continue to work
correctly with it.  Fix the code in the base API demo (which
can't use FragmentTabManager) to work correctly.

Bug #7232088: ListView saved state being lost in some cases

Change-Id: Ib7ba1ab20ff00f2cc95c9f6024ab94783237c9be
2012-09-25 15:07:06 -07:00
Jim Miller
84fb279107 Add test case for new keyguard widget API
Change-Id: Ibcb19c15964f4ea4bad36ec102e9aed8b4ea9c41
2012-09-20 23:46:30 -07:00
Craig Mautner
51f883381d Make Presentation demo retain image and color.
Store which Displays are presenting, their images and their
background colors. That way the don't change between onPause
and onResume.

Change-Id: I01328583ef309bf12e7f5750aa4abea50f847a99
2012-09-11 22:13:09 -07:00
Craig Mautner
9dac35adda New and improved Presentation demo.
Less clutter, bigger letters!

Change-Id: Ie0d5626c6a83a0e96bbda9220aea1f945c1bd825
2012-09-11 14:53:03 -07:00
Dianne Hackborn
f3f7c5f775 API demo for nesting fragments.
Change-Id: I7f20e4f00cf68c78c578ae620a95de7fa97f0761
2012-09-06 11:39:30 -07:00
Jeff Brown
2e1fe78fbf Add new sample for Presentation API.
Change-Id: Ia31deb9ca6ad9a4db1dd6f852c00fa9a94caa4c3
2012-08-31 15:22:34 -07:00
Dianne Hackborn
77201b5414 Rename UserId to UserHandle.
Change-Id: I701335483628d30c875d087f27287e084789f10c
2012-08-16 12:46:49 -07:00
Fabrice Di Meglio
161859ee84 Update ApiDemos for ActionBar
- use Gravity.START and Gravity.END

Change-Id: Id2adac4c23ad2de2d04a36ef8195367aea63c66f
2012-07-18 15:00:22 -07:00
Wink Saville
e8617bccd0 Use telephony-common and mms-common.
Change-Id: If2e6b49eb9ceafc43de107ce761163c654f3ee35
2012-07-11 14:57:38 -07:00
Xavier Ducrohet
344e27f238 am e0db6a0c: am 392863b7: Merge "Remove tab only if tab exists."
* commit 'e0db6a0c5523678f42229e99ea4598dc52b862eb':
  Remove tab only if tab exists.
2012-06-06 14:52:36 -07:00
Xavier Ducrohet
392863b774 Merge "Remove tab only if tab exists." 2012-06-06 14:44:26 -07:00
Dianne Hackborn
4914a5f37b am 80df91c7: New API demos for retained fragments with loaders.
* commit '80df91c7f2ac155c1cf4c3337f8db5a4bf5426b5':
  New API demos for retained fragments with loaders.
2012-06-04 11:21:34 -07:00
Dianne Hackborn
80df91c7f2 New API demos for retained fragments with loaders.
Also tweak the cursor loader samples to filter out query
callbacks that don't change the filter, to avoid restarting the
loader on a configuration change.

Change-Id: Iac9293fed45e127698be59262d68b0b59a8ec9ce
2012-06-04 11:12:37 -07:00
Jean-Baptiste Queru
beb1f40d67 am 34baff19: am 99314f43: Merge "Fix old style edit text drawable display error."
* commit '34baff19d88679254d82420f798387f92a7fb912':
  Fix old style edit text drawable display error.
2012-05-23 15:06:55 -07:00
Jean-Baptiste Queru
99314f432e Merge "Fix old style edit text drawable display error." 2012-05-23 14:58:09 -07:00
Svetoslav Ganov
84710bb8b0 Merge "Updating the accessibility sample due to a security fix." into jb-dev 2012-05-21 13:13:41 -07:00
Dianne Hackborn
58ce6f06a1 A few little tweaks to system ui flag demos.
Change-Id: Ib4c3b45e8d67200a2b4f3a8b0daee198b24bad0f
2012-05-18 19:43:57 -07:00
Svetoslav Ganov
7947d9fb6a Updating the accessibility sample due to a security fix.
1. We have fixed a security issue in the framework and
   this patch is updating the sample.

Change-Id: Icc266ceaf0064cf8d9a00d7ad48746e1f0fbbbf1
2012-05-18 12:52:33 -07:00
SeongJae Park
b9ca48dc1d Fix old style edit text drawable display error.
[Problem]
LinearLayout5, RelativeLayout2 of ApiDemos has text input field
display error.

[Cause]
They use Holo theme although text input field use old style edit text
drawable as background.

[Solution]
Use default edit text without custom background for RelativeLayout2,
LinearLayout5 sample.

Change-Id: I102bf267119ba0903bd17e898b525af0aa2f0c5d
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
2012-05-16 02:53:26 +09:00
Dianne Hackborn
f2bc2a024c Work on issue #6475693 OnSystemUiVisibilityChangeListener reporting...
...incorrect visibility when the ActionBar overflow menu is opened

Improve API demos.

Change-Id: I3e831152a0dbb56270a80cf58e9441b55059c884
2012-05-10 15:26:52 -07:00
Dianne Hackborn
f5d3a23dee Improvements to system UI demos.
- Content browser now lets you long press to go into selection mode.
- Overscan demo has more options for controlling more window state.

Change-Id: I04cfb58f515882cc6dccd65cb68bc073e53dcad5
2012-05-06 12:44:34 -07:00
Dianne Hackborn
9cd165488b Add API demo for Activity.finishAffinity().
Also fix text on some of the existing demos to use the nice
larger font.

Change-Id: I90d3815cd47cda08217cfc6307d64942f6750ae2
2012-04-26 18:57:13 -07:00
Svetoslav Ganov
a185badacb Fixing the build
Change-Id: Iece94781e42cf2e9e0b0d8e447c0754c8bb17003
2012-04-20 16:41:47 -07:00
Dianne Hackborn
d1871405ba Add demo for new custom animation.
Change-Id: I4981f47fe9120f1cfaa7ca793d5fed7f41cb83a4
2012-04-16 18:59:12 -07:00
Jeff Brown
31446e98dd Merge "Use new InputDevice.getVibrator() API." 2012-04-13 17:39:24 -07:00
Jeff Brown
eb1b7a61af Use new InputDevice.getVibrator() API.
Bug: 6334179
Change-Id: I1e592fd1a58a8d0789548346aee1aff6ddb9d684
2012-04-13 17:08:35 -07:00
Jeff Brown
edfcc032c3 Merge "Improve GameControllerInput demo with input device listeners." 2012-04-13 17:02:57 -07:00
Dianne Hackborn
6c5e9eb650 Update API demo to show new clip data types and conversions.
Change-Id: I32e2951c53ecedc75d1459666ced9f54b54cf6ba
2012-04-13 16:12:01 -07:00
Jeff Brown
a4920b722d Improve GameControllerInput demo with input device listeners.
Improves the demo to use the new InputManager API for receiving
notifications when input devices are added, removed or changed.

For example, a game could listen for when new joysticks are
connected or disconnected.

Change-Id: I8ac35206d4f00011145d74c78e91d720aec8f21c
2012-04-12 18:57:28 -07:00
Dianne Hackborn
1b9744a99a Update to follow API change.
Change-Id: I092f2a9fde19648f5d47bde091d15f1bb5deb63b
2012-04-10 16:15:15 -07:00
Dianne Hackborn
f6c3400341 Fix use of fitsSystemWindows, so padding doesn't conflict.
Change-Id: Ie13358220f971369c54ac570830c6fbff5d3c221
2012-04-06 10:57:57 -07:00
Dianne Hackborn
34394c4bcc Merge "Change video demo theme to dark." 2012-04-05 11:46:09 -07:00
Dianne Hackborn
6ad1018f20 Use fitsSystemWindows for better demoing.
Change-Id: I3b9e5068401e0ac1cd1d631434fe1514e8996ee3
2012-04-04 13:30:44 -07:00
Dianne Hackborn
f7541b8c49 Change video demo theme to dark.
Change-Id: Ic5cbe5969f7a6247b3f9eb69e22c5492a46aa13b
2012-04-02 16:37:34 -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
Teng-Hui Zhu
e46673a0a7 Multiple webviews could be a bad model for developers to follow.
bug:6206492
Change-Id: Ib650dbd74b5a00e6e373db74afe7cad242538a9b
2012-03-28 16:09:21 -07:00
Dianne Hackborn
a71d47a718 Add API demo for thumbnail animations.
Change-Id: I97f03f4a172a820d7856bd663a6bc00e3b9521cd
2012-03-23 16:37:04 -07:00
Dianne Hackborn
967d1e6caf Update animation sample to use new activity options API.
Change-Id: Id73663f1e5f159c5b073cd9c074501958ca5a81f
2012-03-19 17:50:03 -07:00
Cheng Ke
7ec212f118 Remove tab only if tab exists.
Prevent crash in ActionBarTabs(ApiDemos).

Change-Id: I1972fc761e8ebf245afb828fe7595bc764eaae56
2012-03-14 10:58:35 +08:00
Dianne Hackborn
de48b21c2d Fix isolated process demo to work with new restrictions.
Isolated processes can now do much less.

Change-Id: I1af8ae0d8dca72de1324d98ed6004cb3c0820a7a
2012-02-09 18:19:37 -08:00
Dianne Hackborn
37f02d8042 New API demo for isolated processes.
Change-Id: I2b2117ae5e5005bfffe8d89df5e06cee32da603c
2012-02-09 10:51:07 -08:00
Dianne Hackborn
a93566ac87 am cafd05f0: am 97d0a1db: Merge "Fix bug in the new notification sample." into ics-mr1
* commit 'cafd05f0c99f9f758b55bf0efee71e8b402de495':
  Fix bug in the new notification sample.
2012-01-30 12:58:59 -08:00
Dianne Hackborn
376e000436 Fix bug in the new notification sample.
Change-Id: I021c5f374857d1affdddd8be37c0f441aaf14c95
2012-01-30 11:44:05 -08:00
Nick Pelly
a983c2a1a3 Update NFC samples.
o Remove NFCDemo sample app. It's janky and is mostly parsing code
  that isn't needed anymore.
o Use new NDEF APIs for parsing and creating records
o Use nicer setNdefPushMessage() API
o Delete helper NDEF code that is not needed any more
o Use URL instead of Text for the foreground push demo
o Mark AndroidBeamDemo a test so it gets installed in data not system

Change-Id: I75eda84019c2075956688e26f2598f126d5659a2
2012-01-25 13:16:52 -08:00
Dianne Hackborn
37e103caf5 am 5370dc8f: am 2a9de021: Clean up and extend the linkify sample.
* commit '5370dc8f0dc20a46302f823af38cb48d08de1c45':
  Clean up and extend the linkify sample.
2012-01-20 15:52:04 -08:00
Dianne Hackborn
2a9de0211d Clean up and extend the linkify sample.
Change-Id: If9d0451af3bfcdcd8bafb325f4b7978857efab7e
2012-01-13 14:00:01 -08:00
Dianne Hackborn
d2f0e4667f am 2492079b: am 0b6b4f2d: Merge "Fix notification sample to follow current UI guidelines." into ics-mr1
* commit '2492079bb859b689adc1ff5504bfc274a9ba07ee':
  Fix notification sample to follow current UI guidelines.
2012-01-11 10:56:42 -08:00