Commit Graph

624 Commits

Author SHA1 Message Date
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
Gilles Debunne
12fca8d8f0 Renamed fill_parent to match_parent
Change-Id: I12ddb06d560f4f373c5ad292823a4646be133744
2010-11-11 12:10:43 -08:00
Jim Miller
7a2d5f2981 Add password expiration test to DeviceAdminSample.
Change-Id: Ib5b398dc068227529d83be2b55c33225f9bbce80
2010-11-10 21:36:55 -08:00
Adam Powell
80541cbaf3 Update modal multi-select demo to restore gracefully after orientation changes
Change-Id: I6ef6ecb28c1e0cccb2bc88be3f4a6b14351d7849
2010-11-05 11:58:27 -07:00
Adam Powell
2b658f0d9f Add ActionBarTabs demo
Change-Id: I21087d63f78a4d35b249e7ffd92bf6823cf29b60
2010-11-03 19:24:16 -07:00
Chet Haase
04281538b3 Update animation demo to use setBackgroundColor functionality on View
Change-Id: I6811fd4a3612c9af8f09e570ee3c600570cefcb1
2010-11-03 18:34:55 -07:00
Xavier Ducrohet
b76b6c5b61 Merge "Make ApiDemo build on Java 5.0" 2010-11-03 18:20:35 -07:00
Xavier Ducrohet
0bb93262cc Make ApiDemo build on Java 5.0
Change-Id: Ib0759e5598d73741ef9e2408f08edd5d6b38288b
2010-11-03 18:11:02 -07:00
Chet Haase
df5ab89e0b Merge "Updated to the new optimized keyframe APIs" 2010-11-03 17:44:33 -07:00
Chet Haase
2d3d5377a8 Updated to the new optimized keyframe APIs
Also fixed some existing bugs in some of the animation apps

Change-Id: Iff39a8396f8c49e2db8601b04012a0bb784a78ed
2010-11-03 16:21:15 -07:00
Roman Nurik
b7ba9ee6cc am bf8c20f6: am bccecc2b: Merge "Add ApiDemo for android.media.audiofx (Visualizer and Equalizer)" into gingerbread
* commit 'bf8c20f6f0ee32f7ca7bfb2fb5d932f13cab55ee':
  Add ApiDemo for android.media.audiofx (Visualizer and Equalizer)
2010-11-03 12:02:21 -07:00
Roman Nurik
bf8c20f6f0 am bccecc2b: Merge "Add ApiDemo for android.media.audiofx (Visualizer and Equalizer)" into gingerbread
* commit 'bccecc2b871749695148a7dcf27ff5b8655a77a0':
  Add ApiDemo for android.media.audiofx (Visualizer and Equalizer)
2010-11-03 07:56:40 -07:00
Roman Nurik
bccecc2b87 Merge "Add ApiDemo for android.media.audiofx (Visualizer and Equalizer)" into gingerbread 2010-11-03 07:55:06 -07:00