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
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
Merge commit '8bcb38f3d49d0fdefd51546ada4232203fc606cf' into gingerbread-plus-aosp
* commit '8bcb38f3d49d0fdefd51546ada4232203fc606cf':
New API demo showing different screen orientation options.
Merge commit '84d495af1b030208cced9b3cd70486a0e9af6370'
* commit '84d495af1b030208cced9b3cd70486a0e9af6370':
Add API demo for picking a contact with a permission grant.
Merge commit '23bff5dd80c782ac6d4f67caa57230f265fca77e' into gingerbread-plus-aosp
* commit '23bff5dd80c782ac6d4f67caa57230f265fca77e':
Add API demo for picking a contact with a permission grant.
- 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
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
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
This changes the FragmentLayout demo to show how the layout
(and entire UI flow) can easily be changed based on screen configuration
using fragments. Here we have different UI for landscape vs portrait.
The old FragmentLayout demo is renamed to FragmentAnim and extended a
bit.
Various other tweaks to follow fragment API changes.
Change-Id: I8df918dbf32b3617cae2b20f77eb37d8211b8c89
- Correctly work with state saving and restoring.
- Add new sample showing a fragment that is retained across activities.
Change-Id: I7b1e02135177e69e9fff23fcc55e86d93a75c7e0