Commit Graph

386 Commits

Author SHA1 Message Date
Andy Stadler
d8865cc32c Update demo for DPM encryption controls
* Follow revised API
* Show more status

Bug: 3346770
Change-Id: I6c5cd8d8f055ceb3a3a78cf3868dbc0f2d535acf
2011-01-17 12:53:31 -08:00
Dianne Hackborn
e63a4b58a2 Add some more API demos for themes.
Shows how to make a basic custom theme with a custom background,
and a theme that selects between the old theme and Holo.

Also use a little trick to make the API demos for HC specific
samples be hidden on older versions of the platform.

Change-Id: Ie53e8103147e81975fca73b96bda989a00504534
2011-01-16 14:29:28 -08:00
Christopher Tate
cbbfda2bd0 Add a dynamically-revealed view to the drag demo
This is to show off and test the handling of views that become
visible after the primary ACTION_DRAG_STARTED broadcast happens.

Change-Id: I8bb575c2e055a9d60fc6ed8bc77457dec13a80b4
2011-01-13 20:28:47 -08:00
Andy Stadler
3eb48a061a Add encryption status controls
* Enable, disable, and activate encryption
* Report encryption status

Change-Id: Ia76cf6033fe00ebdfd3369f8123f5d1ec109f3a9
2011-01-12 20:41:20 -08:00
Scott Main
3ea03c5321 docs: add section links to samples overview
Change-Id: Ib605362eb97e607eba3d965a5ca0f32e6207b841
2011-01-11 21:09:53 -08:00
Christopher Tate
134fada434 API CHANGE: startDrag() now takes "int flags" instead of "boolean localOnly"
startDrag() that crosses application boundaries will remain @hide until we get
more of the surrounding behaviors nailed down.

Drag-and-drop demo updated to only show app-local drag operations pro tem.

Change-Id: I9cdcd132c1aae45bc472e70293b7187b4cba9bca
2011-01-11 17:49:20 -08:00
Chet Haase
d8126c7d89 All animator resources moved to res/animator
Change-Id: I84ea32b1560041a30195067971f02cf9e780d853
2011-01-11 07:20:55 -08:00
Chet Haase
6e27f5856a Rename RGBEvaluator to ArgbEvaluator
Change-Id: I43cf6c9824b012424de1ef2a340ee9dde20af4a7
2011-01-10 16:48:48 -08:00
Dianne Hackborn
69c72dfdf9 Clean up from comments, enable throttling.
Change-Id: I719b0491a7953ab57d76634699c6fdf3ad8558e0
2011-01-08 18:34:43 -08:00
Dianne Hackborn
ddfb4b38f5 Merge "Clean up to no longer use old APIs, add new loader throttle sample." into honeycomb 2011-01-08 17:35:08 -08:00
Dianne Hackborn
4fd816a7ba Clean up to no longer use old APIs, add new loader throttle sample.
The new sample code is a complete self-contained end-to-end
implementation of a content provider populating a list view
through a loader, dynamically changing its contents based on
user input in about 500 lines.

Once the framework support is implemented, this will demonstrate
using CursorLoader's new throttling feature.

Change-Id: Ia67da7284607477125c613c3135f93bc1d95d0cb
2011-01-08 17:33:13 -08:00
Adam Powell
e4d6bfae65 Update dialog demos for API changes related to setting themed icons.
Change-Id: I73213f9593a381bd43b935aa2fa020ec3d6095d7
2011-01-08 13:29:50 -08:00
Christopher Tate
7f68ce1a19 Rename drag "thumbnail" to the drag "shadow"
No functional changes; just a rename of the relevant class/method/parameters.

Change-Id: I506f8b541027cf104553c27547d3e9972cd1add8
2011-01-07 16:31:04 -08:00
Dianne Hackborn
8ab4ac232b Update documentation for API demos.
Change-Id: Iaa84eb197ffc0a584772f946202c13eeb917eabf
2011-01-05 11:29:11 -08:00
Dianne Hackborn
ab88ed55d7 Hide XML adapter sample, since the APIs are now gone.
Also tweak API demos to use the new pretty background.

Change-Id: Idbb523880fff81f6e0f3ca241e4bdaa1dbc2f8f2
2011-01-04 17:28:02 -08:00
Dianne Hackborn
9d247ad58b Some cleanup of fragment API demos:
- Rename FragmentAnim to FragmentHideShow, and tweak it to look
  less stupid.
- Reworking FragmentLayout to better represent a typical way to
  use fragments.
- Tweak various UI elements.

Change-Id: I3f4861c33bafafd27108fe0e4193e0ac7711f69e
2011-01-04 11:39:22 -08:00
Chet Haase
43b37134fd Demos should use main activity context, not getApplicationContext()
Change-Id: I561defd90760864a975b905f13cf30c422da6125
2010-12-28 08:35:38 -08:00
Dianne Hackborn
e4459d5d11 Clean up loader demo.
Change-Id: Ie7ade888389523360e930f051a2143159a7a4f06
2010-12-21 10:13:13 -08:00
Jeff Brown
aaa542be4a Merge "Add sample for tab ordering." 2010-12-17 17:42:17 -08:00
Dianne Hackborn
82362ab449 Give the app widget a background.
So you can see it!

Change-Id: I6ec8a8240a231379ef1f736ed700d780c04d12f6
2010-12-17 11:18:31 -08:00
Dianne Hackborn
d08e015b7e Update fragment cursor loader sample to new New and Shiny.
Change-Id: Id7afc9adba3d29f8d3279737443cde1aee58a3bb
2010-12-16 23:00:15 -08:00
Dianne Hackborn
ec04e5da4b Prepare for some changes to LoaderManager/Loader.
Sorry it is a bit ugly, it is to allow this change to be
checked in prior to the first stage of the framework change
without breaking the build.

Change-Id: Ia59181602679608e765664ecff1fbb52306d9559
2010-12-16 01:07:16 -08:00
Jeff Brown
587b6c441f Add sample for tab ordering.
Change-Id: Id704aac3796abed561c0df533e00600c76b3c31e
2010-12-15 19:38:18 -08:00
Dianne Hackborn
05d297331a Quickly hack out setForeground call that is going away.
I'll come back in a bit and make this API demo work again.

Change-Id: I287dd64925e48bc934c44fb6d0b779a58a270503
2010-12-14 21:56:15 -08:00
Dianne Hackborn
11371e6d36 Update to use help APIs.
Change-Id: I11bab7b66376b34303e8e84460236a1ff7a475b2
2010-12-13 12:46:19 -08:00
Adam Powell
17dc3b3909 Updates for style changes
Change-Id: Id52a0436f58ed8f5cdbffea663a0ec35b6f036aa
2010-12-06 17:11:49 -08:00
Dianne Hackborn
c68fdf80f4 Make activity dialog sample look more like an alert dialog.
Change-Id: I808604968a647eaedc703a76afa7231812723399
2010-12-05 20:02:55 -08:00
Dianne Hackborn
141c84a864 Switch to modern light themes.
Change-Id: I4a33cd7bd98b1bf8b760d902ee5120c117dff479
2010-12-03 16:33:09 -08:00
Dianne Hackborn
ae1d79d3f4 Extend DialogActivity API demo to show off new window re-measuring.
Change-Id: Ia04dbf95131d5cffbdd3ae0c22758da7f6d28a1b
2010-12-02 22:00:46 -08:00
Christopher Tate
8f2e8f48b9 Add drag/drop demo to ApiDemos
Drag/drop among four big dots on screen.  Drags to a dot will have
the identity of the originating dot put into a text field below the dots.
In all cases, a text field to the right of the dots reports whether the
drag ended in a successful drop.

Attempting to start a drag from a dot reading "Drag ANR" should ANR and
be cleaned up properly.

Attempting to drop onto a dot reading "Drop ANR" should similarly ANR
and be cleaned up properly.

Drags from a dot labelled "Local" are restricted to targets within
the app's own window -- they are not draggable to the system "shirt
pocket" drop target, etc.

A drop onto the same dot that it originated from will append text to
that effect to the message that notes the dropped payload.  This
uses the "local state" convenience mechanism in startDrag() and
DragEvent.getLocalState().

Change-Id: Ic5cd6a29186a84c91d3dc4187e83e7bcf530ba2f
2010-12-01 17:42:37 -08:00
Dianne Hackborn
4799e5583e API demo for new Activity.recreate() API.
Change-Id: I56bd36edf2cd5cd9b6f95dd4a2b82571689c04d2
2010-12-01 16:14:08 -08:00
Chet Haase
8dfaaa2ffd Added new xml anim capabilities to AnimationLoading demo
New xml capabilities for animators, so I added new functionality
to the existing xml loading demo app

Change-Id: Iba30dce28059031744ce23d1f79f41072a6a1e78
2010-12-01 08:25:27 -08:00
Mathias Agopian
140d61bcbb am 9335c6b6: am cec3f598: Merge "Add an API demo showcasing the new rotation vector sensor" into gingerbread
* commit '9335c6b6e9a338ec4e8673bd2adb0fb4eb07b771':
  Add an API demo showcasing the new rotation vector sensor
2010-12-01 03:37:48 -08:00
Mathias Agopian
9335c6b6e9 am cec3f598: Merge "Add an API demo showcasing the new rotation vector sensor" into gingerbread
* commit 'cec3f598e6e7e527583daae393b3d0192af77baf':
  Add an API demo showcasing the new rotation vector sensor
2010-11-30 14:08:47 -08:00
Mathias Agopian
cec3f598e6 Merge "Add an API demo showcasing the new rotation vector sensor" into gingerbread 2010-11-30 14:05:20 -08: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
Dianne Hackborn
e06aa608ab New dialog sample with a lot of text and thus large dialog.
Change-Id: Iaf0cba52e51f36b98a5a4a1965f0e1eb02bb8f9f
2010-11-29 16:52:18 -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
35dfdb6fc3 am dbe66332: Extended camera preview to switch between multiple available device cameras
* commit 'dbe66332e278962c058a596353b839a2fd6dca1b':
  Extended camera preview to switch between multiple available device cameras
2010-11-29 15:54:05 -08:00
Andy Stadler
bc16d2e288 Add display of password expiration status
* Also clean up a few warnings.

Change-Id: I79d8d4c49c113e23160839ddb079a241a245729b
2010-11-29 10:10:47 -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
Mathias Agopian
d6e9c61294 Add an API demo showcasing the new rotation vector sensor
Change-Id: I3f00560b0340db31779259aa98efc174b0b645cd
2010-11-24 13:53:57 -08:00
Xavier Ducrohet
277b00a155 Make ApiDemo compile on Java 1.5
Change-Id: I0a9d078dd9e6a6388281e492da9bd4acb9747a41
2010-11-23 17:27:18 -08:00
Marco Nelissen
d98d989036 Don't hardcode 320x480 size in the FingerPaint API demo.
Change-Id: I4de9ce1e52dda68bf4c3ab7fbd9987ca6d5548a0
2010-11-23 10:02:30 -08:00
Dianne Hackborn
41430b9f30 Sample code for new APIs to support new back stack / task navigation
Change-Id: I79d1933b894b049711781c39b8e15dbce1626448
2010-11-22 18:35:58 -08:00
Joe Onorato
24ba0688a6 Update Notification sample code for new APIs.
Change-Id: Icaa86212192b9c9cef89d2d6013363955bd3a668
2010-11-21 16:36:23 -08:00
Andy Stadler
47d6d8e1e2 Quick bugfix for password expiration UI
Change-Id: Iecc0f6fbfe85293a6b22fd0a0ffaae69a0fbc3e9
2010-11-19 16:00:40 -08:00
Jim Miller
3087c65b7c Merge "Add password expiration test to DeviceAdminSample." 2010-11-11 19:45:45 -08:00
Gilles Debunne
a9c1bf68a8 Merge "New demos and tests for Tabs in Holo theme." 2010-11-11 12:25:27 -08:00
Gilles Debunne
2fba3e1bce New demos and tests for Tabs in Holo theme.
Change-Id: Ifd12e639e7e25e1e5ea7b1b1106789976d9450d3
2010-11-11 12:17:49 -08:00