Dianne Hackborn
58ce6f06a1
A few little tweaks to system ui flag demos.
...
Change-Id: Ib4c3b45e8d67200a2b4f3a8b0daee198b24bad0f
2012-05-18 19:43:57 -07:00
Dianne Hackborn
f2bc2a024c
Work on issue #6475693 OnSystemUiVisibilityChangeListener reporting...
...
...incorrect visibility when the ActionBar overflow menu is opened
Improve API demos.
Change-Id: I3e831152a0dbb56270a80cf58e9441b55059c884
2012-05-10 15:26:52 -07:00
Dianne Hackborn
f5d3a23dee
Improvements to system UI demos.
...
- Content browser now lets you long press to go into selection mode.
- Overscan demo has more options for controlling more window state.
Change-Id: I04cfb58f515882cc6dccd65cb68bc073e53dcad5
2012-05-06 12:44:34 -07:00
Jeff Brown
eb1b7a61af
Use new InputDevice.getVibrator() API.
...
Bug: 6334179
Change-Id: I1e592fd1a58a8d0789548346aee1aff6ddb9d684
2012-04-13 17:08:35 -07:00
Jeff Brown
a4920b722d
Improve GameControllerInput demo with input device listeners.
...
Improves the demo to use the new InputManager API for receiving
notifications when input devices are added, removed or changed.
For example, a game could listen for when new joysticks are
connected or disconnected.
Change-Id: I8ac35206d4f00011145d74c78e91d720aec8f21c
2012-04-12 18:57:28 -07:00
Dianne Hackborn
adee1fdf63
Update Full Screen Modes to demostrate more modes.
...
UI is now a set of check boxes to toggle the various modes.
Also add new API demos for two typical implementations using
system UI flags: a content browser and a video player.
Change-Id: If93659343cfc42b903b18997a5a0a04ee10e8343
2012-03-30 17:13:06 -07:00
Teng-Hui Zhu
e46673a0a7
Multiple webviews could be a bad model for developers to follow.
...
bug:6206492
Change-Id: Ib650dbd74b5a00e6e373db74afe7cad242538a9b
2012-03-28 16:09:21 -07:00
Steve Block
aa29f342e5
Fix use of WebView.loadData() to avoid passing invalid encoding
...
No change in behavior, as invalid encodings have always been ignored.
Bug: 5125738
Change-Id: Ice8ccc2b82e3c5d28169788321dfbbfadb29b392
2011-10-17 15:09:35 +01:00
Philip Milne
875cd1c602
Move GridLayout1/2 to here from GridLayoutTest in frameworks/base.
...
Change-Id: Iff31b918a3fdf599a356107a418e056cf5663142
2011-10-06 17:15:11 -07:00
Scott Main
026370edef
Merge "remove LOW_PROFILE flag when setting HIDE_NAVIGATION, because it's not needed in order to work"
2011-09-27 18:17:27 -07:00
Scott Main
689a60dd25
fix custom view sample to scale text based on screen density
...
Change-Id: I2e08e90b7baa73a4e36bad9f6abb9364d7b471d1
2011-09-21 17:57:59 -07:00
Scott Main
a0038f1170
remove LOW_PROFILE flag when setting HIDE_NAVIGATION, because it's not needed in order to work
...
Change-Id: I4eb6aee12f00bc98d14e7f42476acaf75340ac26
2011-09-21 15:56:47 -07:00
Adam Powell
758f6d0ab5
Add switch demo
...
Added default on state and a listener triggering a toast.
Change-Id: I79a89801d878b08fee55919e92044cd71f47108c
2011-08-31 11:23:02 -07:00
Amith Yamasani
5591368aec
Remove old fashioned expand/collapse techniques in SearchView examples.
...
These are not the recommended patterns any more.
Bug: 5086888
Change-Id: If354ea5af0eaff33d0e572177a9e804d899d07e1
2011-08-10 18:36:11 -07:00
Daniel Sandler
173fb98b2d
Demonstration of the various fullscreen modes:
...
FLAG_FULLSCREEN,
SYSTEM_UI_FLAG_LOW_PROFILE,
SYSTEM_UI_FLAG_HIDE_NAVIGATION.
Bug: 5052456
Change-Id: I3c23caa83a66b585ae1102e3d473f6e4f096840d
2011-08-04 16:47:02 -04:00
Amith Yamasani
ea5c0b0f87
New SearchView expansion using ActionBar feature.
...
Change-Id: Ib0a4bdc45af65fdeeb354ee02de02b251fec471d
2011-07-25 13:17:05 -07:00
Jeff Brown
f53e7c9863
ApiDemos: Fix array indexing bug in game controller demo.
...
Change-Id: Ic7f1ce8bed39b2c10dd0e583c3ad118095f14752
2011-06-30 12:01:10 -07:00
Jeff Brown
402adc44c2
Add a sample for handling hover events.
...
Change-Id: I9e19e09d3f5b8d0fd03f52cc8d88e6a12399d12f
2011-06-28 14:28:57 -07:00
Jeff Brown
cb34b7c07a
Update samples to use new getMotionRanges() API.
...
Change-Id: I6b67b7cd1f739b5b52ac32745f52bf0a092480a0
2011-03-08 17:35:22 -08:00
Jeff Brown
cce588af9a
Merge "Add a sample for HorizontalScrollView."
2011-02-25 17:15:20 -08:00
Jeff Brown
2e87344184
Add a sample for HorizontalScrollView.
...
Change-Id: If5f59771182fdb1e76ac10e32a89257f047e6798
2011-02-25 12:04:25 -08:00
Chet Haase
806af22e17
Add ViewPropertyAnimator for easy View animations
...
A demo in ApiDemos conflicted with the new animate() API
in View. The method was internal, so it was renamed to
avoid the conflict.
Change-Id: Id6dffc84fa0800677a0b67bee9c78f26da775d26
2011-02-25 07:10:09 -08:00
Dianne Hackborn
9fd3b6e993
New sample code for fragment support library.
...
Also tweak a few things to make the demos run on Donut.
Change-Id: I298fdf8fb0f12ee6db10e66657a22e19a527811a
2011-02-24 15:18:25 -08:00
Jeff Brown
10f877be7b
Add a sample to demonstrate game controller usage.
...
Change-Id: I86a91916a39f3a211b06016b163f8d4a6d4a5a3b
2011-02-24 12:33:52 -08:00
Christopher Tate
66aa48b723
Don't use the View drag-is-cross-app flag
...
Tracking a framework change; this is descoped from the next release
forthcoming from this branch.
Change-Id: Ib0519cd0ee60ff0051185e60d38be2ac299f420b
2011-02-14 17:40:31 -08:00
Scott Main
6788075c9b
am b965e4af: am 0f911715: docs: add links to action bar and drag demos in the index page
...
* commit 'b965e4afc436902170f45bbfc5fac5569d40cb88':
docs: add links to action bar and drag demos in the index page
2011-02-14 15:43:57 -08:00
Scott Main
0f911715e4
docs: add links to action bar and drag demos in the index page
...
Change-Id: I3fb2bff96d958801d350b94e0b0193c71902a7a8
2011-02-14 15:36:46 -08:00
Christopher Tate
796df3b02e
The drag/drop ApiDemo now uses a global drag, not local-only
...
Showing off the new View.DRAG_FLAG_GLOBAL feature.
Change-Id: I3f857974a7334e00a891d93a70ecc7a85378cd68
2011-01-28 18:08:53 -08:00
Adam Powell
4da9196dd0
API change - bug 3370353 and bug 3370338
...
Change-Id: I9da53f3260ca17713e793b420e477686ad23c7d3
2011-01-20 18:36:37 -08:00
Xavier Ducrohet
959f517c24
Merge "Remove illegal @Override on interface method." into honeycomb
2011-01-17 21:51:43 -08:00
Xavier Ducrohet
62e3bb6f93
Remove illegal @Override on interface method.
...
Samples should compile with 1.5
Change-Id: I029ae9ded4237fd9d4d2d1dbf2c7c537afbbf36b
2011-01-17 17:05:05 -08:00
Dianne Hackborn
0d11c9c345
Follow API changes.
...
Change-Id: Ieb1df7fc0708f22aae3d851f74ade1343eb44e08
2011-01-17 15:27:56 -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
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
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
Jeff Brown
587b6c441f
Add sample for tab ordering.
...
Change-Id: Id704aac3796abed561c0df533e00600c76b3c31e
2010-12-15 19:38:18 -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
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
80541cbaf3
Update modal multi-select demo to restore gracefully after orientation changes
...
Change-Id: I6ef6ecb28c1e0cccb2bc88be3f4a6b14351d7849
2010-11-05 11:58:27 -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
b252273014
Update to follow API.
...
Also a new list demo.
Change-Id: I0c59fc6f50009fcba183f0b5af61ec50d5888240
2010-10-26 12:47:13 -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
Jeff Brown
2073f44b8f
am ff242db8: Merge "Add samples for secure views." into gingerbread
...
Merge commit 'ff242db8670695e946400d957a82d2933e7e01a1' into gingerbread-plus-aosp
* commit 'ff242db8670695e946400d957a82d2933e7e01a1':
Add samples for secure views.
2010-09-08 11:57:59 -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