Dianne Hackborn
69c72dfdf9
Clean up from comments, enable throttling.
...
Change-Id: I719b0491a7953ab57d76634699c6fdf3ad8558e0
2011-01-08 18:34:43 -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
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
Jeff Brown
587b6c441f
Add sample for tab ordering.
...
Change-Id: Id704aac3796abed561c0df533e00600c76b3c31e
2010-12-15 19:38:18 -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
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
d6e9c61294
Add an API demo showcasing the new rotation vector sensor
...
Change-Id: I3f00560b0340db31779259aa98efc174b0b645cd
2010-11-24 13:53:57 -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
Gilles Debunne
2fba3e1bce
New demos and tests for Tabs in Holo theme.
...
Change-Id: Ifd12e639e7e25e1e5ea7b1b1106789976d9450d3
2010-11-11 12:17:49 -08:00
Adam Powell
2b658f0d9f
Add ActionBarTabs demo
...
Change-Id: I21087d63f78a4d35b249e7ffd92bf6823cf29b60
2010-11-03 19:24:16 -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
Chet Haase
ed20aff7b1
Added setColor to ColorDrawable.
...
Also, set hardwareAccelerated=false for animation demos using ovals
(which are not yet supported through GL)
Change-Id: I710b6be51a14bf02650206bd6bae8841ecd3ac79
2010-11-01 13:54:29 -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
Dianne Hackborn
c5b44be024
Fix issue #3083745 : ApiDemos CustomTitle crashes
...
Also turn on graphics acceleration in API demos... this will cause a
bunch of other stuff to crash until we go through and turn it off
where needed.
Change-Id: I9ddd2beadd19fdab170e5a8cf8beea6b0bc2156d
2010-10-28 10:52:11 -07:00
Roman Nurik
90c1d50252
Add ApiDemo for android.media.audiofx (Visualizer and Equalizer)
...
Change-Id: I4fa3b0aff4edfe80533066a81b0eacc97caa6f86
2010-10-26 14:04:11 -07:00
Dianne Hackborn
b252273014
Update to follow API.
...
Also a new list demo.
Change-Id: I0c59fc6f50009fcba183f0b5af61ec50d5888240
2010-10-26 12:47:13 -07:00
Dianne Hackborn
ee3433bc58
resolved conflicts for merge of efddd2c5 to master
...
Change-Id: Ida5785a4b936ed485ee6f895cbe994acf5b37626
2010-10-05 14:06:01 -07:00
Chet Haase
2a06483139
Demos for show/hide layout transitions
...
Change-Id: Idb7ecb66b7dc0126a230385dd09af6a9208d5345
2010-10-04 15:19:26 -07:00
Dianne Hackborn
bf895af17d
New API demo showing different screen orientation options.
...
Change-Id: I75b206f86ee87b50cccc5e23140d55bd566781cd
2010-10-02 16:56:56 -07:00
Jeff Brown
b39c4ba316
Added samples for splitting touches across views.
...
Also modified the rotating button demo to use touch splitting.
Change-Id: I560736903651e6846f847a9bd743a24a1707f6d2
2010-09-30 11:56:14 -07:00
Amith Yamasani
ed6ae47c87
SearchView examples
2010-09-14 18:05:13 -07:00
Jeff Brown
b7e6e13f99
resolved conflicts for merge of 2073f44b to master
...
Change-Id: I4e787edd6aed6027ceb30bd9c6def6912c48c63c
2010-09-08 13:11:24 -07:00
Gilles Debunne
045eac4208
New simple_selectable_list_item layout demo in ApiDemos / List
...
This layout uses the new border rectangle to highlight selected items.
Change-Id: Ic1b1bb4cb703c1f30e36a2913b9432a76ea0a6d6
2010-09-08 11:21:31 -07:00
Gilles Debunne
62c863d257
Added a disabled button and a second text edit in View / Controls
...
Change-Id: I2e0e9b480609289fa7f9546614af51d4ce293a9c
2010-09-08 10:18:06 -07:00
Jeff Brown
cf4db94885
Add samples for secure views.
...
Change-Id: Ibe1e63c87f4c6a715009f7bbcdafa552dc2d937c
2010-09-07 13:04:15 -07:00
Chet Haase
0a495ab0d3
Demo ability to enable default layout animations from XML
...
Change-Id: I4a5c73391d277c248958cf8cb5260078006bafb1
2010-09-03 15:50:32 -07:00
Chet Haase
43828a8383
Demo of layout add/remove transitions
...
Change-Id: Ib5f31bb0b6d16fa18cf10a426a25c7a8138f620a
2010-09-03 12:19:41 -07:00
Dianne Hackborn
2593a187ab
am 84d495af: am 23bff5dd: Add API demo for picking a contact with a permission grant.
...
Merge commit '84d495af1b030208cced9b3cd70486a0e9af6370'
* commit '84d495af1b030208cced9b3cd70486a0e9af6370':
Add API demo for picking a contact with a permission grant.
2010-09-02 14:52:45 -07:00
Dianne Hackborn
23bff5dd80
Add API demo for picking a contact with a permission grant.
...
Change-Id: I9b0659e18afb19f8050cb77104c41ea291a9e3c7
2010-09-02 11:21:05 -07:00
Chet Haase
2ab1da8886
Demo for using and testing animation events
...
Change-Id: I7db791928dc590fd724f4c71565b42bc366e519c
2010-08-25 16:49:54 -07:00
Chet Haase
0366ddf4d3
Adding demo for xml animator loading
...
Change-Id: I77d4e4f3b26c47e7973dd64282c12a9d6c3b5dd1
2010-08-24 19:50:12 -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
Chet Haase
434672af29
add demo of bouncing balls to show various Animator APIs
...
Change-Id: I9d3aec9661d8845f67ea1c01b00f85f2380fd77f
2010-08-20 17:59:09 -07:00
Chet Haase
ce436337da
Revert "Revert "demo multi-property animations""
...
This reverts commit afb6baf915 .
2010-08-19 17:55:31 -07:00
Chet Haase
afb6baf915
Revert "demo multi-property animations"
...
This reverts commit d9e2a04d7c .
2010-08-19 17:40:27 -07:00
Chet Haase
d9e2a04d7c
demo multi-property animations
...
Change-Id: I587bdc08e48a09d6df471e5bae767977c0c9ae18
2010-08-19 15:56:59 -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
Chet Haase
eba431d703
demo for new reversing behavior in Animator
...
Change-Id: I50c736ce504105101f71551d6074750dca9d1391
2010-08-17 16:17:20 -07:00
Adam Powell
6c7ec482e3
Add GridView selection mode demo
...
Change-Id: I154424f29458870f66b3bb6b2025a4cd6fd16ee8
2010-08-16 11:48:34 -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
Romain Guy
c96fa3887b
Remove the "View" entry (typo.)
...
Change-Id: I8fbc9be5699c36b9e7cdcc94f71b431601ba3a79
2010-08-11 19:34:27 -07:00
Chet Haase
64606ec84a
Demo of new 3d rotation properties on View
...
Change-Id: I0b50b60c4452b3fc4bc22b8bc4109b8d78260204
2010-08-10 10:46:40 -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
Dianne Hackborn
46e70551eb
New API demo for clipboard.
...
Change-Id: Ifcf52b2f7bae10e77c074868414a57c2d8f67c3c
2010-08-05 12:28:14 -07:00