Commit Graph

116 Commits

Author SHA1 Message Date
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
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
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
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
Jeff Brown
587b6c441f Add sample for tab ordering.
Change-Id: Id704aac3796abed561c0df533e00600c76b3c31e
2010-12-15 19:38:18 -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
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
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
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
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
2b658f0d9f Add ActionBarTabs demo
Change-Id: I21087d63f78a4d35b249e7ffd92bf6823cf29b60
2010-11-03 19:24:16 -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
8143be8d03 Update device admin example to wipe SD card.
Change-Id: I224006f284916761578e3d04b208828f80ea3cb6
2010-10-15 18:52:33 -07:00
Chet Haase
45d18599b8 Various fixes
Change-Id: I70509d19d1df01e998de4804bc7c1e1899ad8dee
2010-10-07 12:29:12 -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
7da3f9f51e Modfied demo to show setting animations to null
Originally, setting LayoutTransition animators to null just restored the default animation behavior, It seems more sensible to have null actually disable the animation. I made that change to the framework and modified this demo to show how it's done. Along the way, I refactored the code a bit and fixed some minor bugs.

Change-Id: Icfb53ada234b635294c5faa68a15932f25859fb8
2010-10-04 17:25:41 -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
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
Amith Yamasani
ed6ae47c87 SearchView examples 2010-09-14 18:05:13 -07:00
Chet Haase
fe3b0cb7aa Merge "Enhanced demo for view transformation properties" 2010-09-09 15:35:56 -07:00
Chet Haase
b0a7a1ac0f Enhanced demo for view transformation properties
Change-Id: I01939513d7848b09ce17e7f604512a89062f446f
2010-09-09 14:53:12 -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
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
Dianne Hackborn
3e4a5c8a5e Update to follow clipboard APIs.
Change-Id: I905a499f2697bea218b6d4c3f8ec339fbe52c916
2010-08-27 11:06:05 -07:00
Dianne Hackborn
b15335142e Update preference samples.
Change-Id: Ia78d9c0f4f7e58f500aef55413b911904d0c40cd
2010-08-26 17:09:27 -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
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