Commit Graph

124 Commits

Author SHA1 Message Date
Dianne Hackborn
8ab4ac232b Update documentation for API demos.
Change-Id: Iaa84eb197ffc0a584772f946202c13eeb917eabf
2011-01-05 11:29:11 -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
Dianne Hackborn
e4459d5d11 Clean up loader demo.
Change-Id: Ie7ade888389523360e930f051a2143159a7a4f06
2010-12-21 10:13:13 -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
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
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
Dianne Hackborn
4799e5583e API demo for new Activity.recreate() API.
Change-Id: I56bd36edf2cd5cd9b6f95dd4a2b82571689c04d2
2010-12-01 16:14:08 -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
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
Xavier Ducrohet
277b00a155 Make ApiDemo compile on Java 1.5
Change-Id: I0a9d078dd9e6a6388281e492da9bd4acb9747a41
2010-11-23 17:27:18 -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
7a2d5f2981 Add password expiration test to DeviceAdminSample.
Change-Id: Ib5b398dc068227529d83be2b55c33225f9bbce80
2010-11-10 21:36:55 -08:00
Adam Powell
2b658f0d9f Add ActionBarTabs demo
Change-Id: I21087d63f78a4d35b249e7ffd92bf6823cf29b60
2010-11-03 19:24:16 -07:00
Xavier Ducrohet
0bb93262cc Make ApiDemo build on Java 5.0
Change-Id: Ib0759e5598d73741ef9e2408f08edd5d6b38288b
2010-11-03 18:11:02 -07:00
Dianne Hackborn
6d36a9ee9b New API demo showing different soft input modes.
Change-Id: I2aa53a093df0bd11d9bbe9eb866d2309f113d96d
2010-10-29 17:24:41 -07:00
Adam Powell
6a89a9ead0 Added demo for ActionBar display options
Change-Id: Ib916c36c0d3f8866b4f7f3a616fe15dcf0ca007f
2010-10-29 15:10:57 -07:00
Kenny Root
56281044e3 resolved conflicts for merge of 79ee0a9a to master
Change-Id: I110bd412e38358b3d99235bf10fd9d1022aa04e9
2010-10-18 13:56:13 -07:00
Dianne Hackborn
79ee0a9a05 am 8143be8d: Update device admin example to wipe SD card.
Merge commit '8143be8d0348e4918ccc75e0a44e617c295da2fc' into gingerbread-plus-aosp

* commit '8143be8d0348e4918ccc75e0a44e617c295da2fc':
  Update device admin example to wipe SD card.
2010-10-16 16:55:15 -07:00
Dianne Hackborn
8143be8d03 Update device admin example to wipe SD card.
Change-Id: I224006f284916761578e3d04b208828f80ea3cb6
2010-10-15 18:52:33 -07:00
Dianne Hackborn
ee3433bc58 resolved conflicts for merge of efddd2c5 to master
Change-Id: Ida5785a4b936ed485ee6f895cbe994acf5b37626
2010-10-05 14:06:01 -07:00
Dianne Hackborn
efddd2c5b2 am 8bcb38f3: Merge "New API demo showing different screen orientation options." into gingerbread
Merge commit '8bcb38f3d49d0fdefd51546ada4232203fc606cf' into gingerbread-plus-aosp

* commit '8bcb38f3d49d0fdefd51546ada4232203fc606cf':
  New API demo showing different screen orientation options.
2010-10-04 14:58:44 -07:00
Dianne Hackborn
bf895af17d New API demo showing different screen orientation options.
Change-Id: I75b206f86ee87b50cccc5e23140d55bd566781cd
2010-10-02 16:56:56 -07:00
Dianne Hackborn
8fc1811242 Make FramementLayout demo better... and, um actually work.
Also some other small cleanup.

Change-Id: Iaaf5d4a85113b4a01a4bd3986e2334972e1096ad
2010-09-21 19:29:47 -07:00
Joe Onorato
2d1343ad32 Add sample code for the new tablet ticker.
Change-Id: I621cb3daf3fe79db149e8efbac5ea3ec62371503
2010-09-21 11:55:12 -04:00
Dianne Hackborn
519b6aa41e Modify retain sample to show of retained targets.
Change-Id: I33dd83651006469ef2af7976861f3b832e13bf60
2010-09-12 17:10:44 -07:00
Gilles Debunne
6e94ff6be9 New Views/Controls themes: Theme.Holo and Theme.Light.Holo
Change-Id: Ie3cd1ea5713119ce2027096a55e68997127a46f7
2010-08-23 17:23:02 -07:00
Dianne Hackborn
effa303688 Update fragment dialog samples.
- Follow API changes.
- Clean up and mark up for inclusion as sample code.
- New sample that shows a DialogFragment used as both a dialog
  and embedded in an activity.

Change-Id: Icaa41283562f4f345b188442ef988c9d5edd8ed1
2010-08-20 18:32:43 -07:00
Dianne Hackborn
1164f90b8a Update API demos to mark up for java doc insertion.
Change-Id: Ib0147af6c82f7781fd50f9a5f85c34c140973909
2010-08-17 18:53:23 -07:00
Dianne Hackborn
9e6f12a598 Update to follow fragment API changes.
Also make use of fragment arguments and targets to simplify code.

Change-Id: I79884854f4c7ff4fdc35c68087b5b2235a75c79f
2010-08-15 17:18:15 -07:00
Dianne Hackborn
b880eb4260 Update API demos to use new Fragment features.
In particular, use the new argument Bundle for passing runtime
data to fragments.  Simplifies the code some.

Change-Id: I248bfa0bf94b1599926038174baa4c7387ed8ba1
2010-08-12 17:19:06 -07:00
Chet Haase
84df83a5e2 Make fragments use the new animation system
Change-Id: I20b200c285336066d96cdb9cc37287d1168a1874
2010-08-11 16:41:49 -07:00
Adam Powell
72187805c3 Added simple demos for ActionBar
Change-Id: Ie0dbf0c2bad61f75825e832305205811f49459d1
2010-08-06 14:42:20 -07:00
Dianne Hackborn
d21c55665c Some tweaks to the loader API demo.
Unfinished, but checkpointing.

Change-Id: Ib832a6915847302e8bbb23c6cf111c932fdacabf
2010-08-05 18:20:35 -07:00
Oscar Montemayor
d53965f305 Attempting to add new Corp App to demo Global Proxy.
Making ApiDemos device admin able to set the Global Proxy.

Change-Id: I565ccf5d05b1c7d775aea968e99e04894c3f8b64
2010-08-04 16:02:39 -07:00
Andrew Stadler
45ae9c3def Cleanup fragment api demos
* Cleaned up extra whitespace & made vertical whitespace more consistent
* 100col wrap
* Remove unused imports
* Add @Override where necessary

Change-Id: I1ad404ffc4ce7fa9c4b661f7cc1783c86356316b
2010-08-03 17:39:20 -07:00
Dianne Hackborn
132ab286a1 Update preference example to show switching with fragments.
Change-Id: I2b1db31b5e1a0e83d843ad68b0a177048d2914f4
2010-08-03 17:07:45 -07:00
Scott Main
6e9821c667 change fragment stack button from "next" to "new fragment"
also move text in the dialog demo to the top to make dialogs easier to read

Change-Id: I76c44f773098e64c79465060efb4bb6edab1fa3a
2010-08-03 14:12:43 -07:00
Dianne Hackborn
721a184e0a Add new sample for multi-pane PreferenceActivity.
Also re-arrange all preference API demos to go in their own
package, since the preferfence APIs themselves are in their own package.

Change-Id: I305f77dc09748bb60d1de8a23d063db64c11bb1e
2010-08-03 10:39:14 -07:00
Dianne Hackborn
05c2cb0748 Add sample code for PreferenceFragment.
Change-Id: I64222124daa117a2ea61dc55f2e26af78d3689c2
2010-07-28 16:07:15 -07:00
Dianne Hackborn
cdb8af8170 Add API demo for DialogFragment.
Change-Id: Id02cba60d661f747c36bc113bd81a2b6fe45573a
2010-07-24 11:43:26 -07:00
Dianne Hackborn
97200cb52e No longer need to explicitly hide/show list.
Change-Id: Ie5690ad76576956cb46f8dcccb734e3ccbf9ac4d
2010-07-12 11:41:33 -07:00
Dianne Hackborn
b7879a7755 Update to follow LoaderManager API.
Also renaming the list samples to make it clearer what they are.

Change-Id: I91b209a32ad4dbf82982682884769d1cde8e3bc3
2010-07-09 18:43:38 -07:00
Dianne Hackborn
fc9a8e6260 Update to use new LoaderManager API.
Change-Id: I76c7e7210979742e4ab2140ee68fcaf2207505e5
2010-07-07 17:30:32 -07:00
Dianne Hackborn
3c68928dd8 New fragment sample.
This shows more complicated list interaction: using a loader
to populate the list with results from a cursor.  Makes use
of the new built-in empty message and indeterminant progress
features.

Change-Id: I04afb50879995bade286aab0eedfff40f6a5e304
2010-06-28 15:10:37 -07:00
Konstantin Lopyrev
991a1f530a Fix 2677197: Adding support for minimum number of complex characters to the Device Admin Sample App.
Change-Id: I7570f005ee665adc150e8c4fb92068b4d8dcdbb1
2010-06-21 16:59:31 -07:00