summaryrefslogtreecommitdiff
path: root/samples/ApiDemos/src/com/example/android/apis/view
Commit message (Collapse)AuthorAgeFilesLines
* Remove deprecated Gallery and ImageSwitcher from API DemosAlan Viverette2014-03-263-320/+0
| | | | Change-Id: Ib6b1f23a368d042674aabd01361f76df2a8e5280
* Temporarily taking over API Demos v19 for Quantum demosAlan Viverette2014-03-032-0/+38
| | | | | | v19 has been moved to v99 until we have an API rev for L release. Change-Id: I864ef7962ce5be6f072bfe9866c9f93f12ea438e
* Add controls demo with default themeChet Haase2014-01-281-0/+19
| | | | Change-Id: I95cd31cd93e77b17aa2bcacf6e6140aaba719217
* Add API demo for game style system UI interaction.Dianne Hackborn2013-12-041-0/+189
| | | | | | | | | | Shows the ideal way for a game to interact with system UI, hiding the status bar and nav bar while being played, making them visible when paused or otherwise interacting with controls of the game, and determing layout of game controls to not be covered by the status bar or nav bar. Change-Id: Ia192c31321113d81f96c06c7a69a06ef72c4682a
* New system UI API demos.Dianne Hackborn2013-10-113-4/+349
| | | | | | | | - Content browser that hides nav bar. - Translucent bars. - All the new flags on the direct system UI tweaker example. Change-Id: I16fc8da252174db1ed45b0f60c37d6cbb8d7f13c
* am 070228fa: Merge "Extend the TimePickerDialog test to cover 12- and ↵Elliott Hughes2013-06-131-20/+20
|\ | | | | | | | | | | | | 24-hour clocks." * commit '070228fa263678b906d845039a314f2ec45f52e0': Extend the TimePickerDialog test to cover 12- and 24-hour clocks.
| * Extend the TimePickerDialog test to cover 12- and 24-hour clocks.Elliott Hughes2013-06-051-20/+20
| | | | | | | | | | | | Used to test https://android-review.googlesource.com/54121. Change-Id: Ibf8418f21a7c242aac27c7e05b4990149c8305b3
* | Improve TransportController demo.Dianne Hackborn2013-04-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This is an actually realistic implementation of a video player. It's still delibrately simple, but it's not outright broken. We now have our own media controller since that is the only way to get something that actually works, we use system UI flags to hide nav/status bar when playing, we use the new TransportController APIs to go into a formal playback state where we take audio focus. Change-Id: I19ac171483637b8ee94c9c07aea39c11748cbc46
* | Fix ExpandableList1 sampleFabrice Di Meglio2013-03-221-1/+3
| | | | | | | | | | | | - also increase android:targetSdkVersion to 17 Change-Id: Ibceb38f5514a7c321f75d267e40c338c0340b1ef
* | Update ApiDemos to use new input source checkMichael Wright2013-03-112-9/+5
| | | | | | | | Change-Id: Iab20881dca49cfef66fa35396942cdb5045137aa
* | Add API demo for a custom layout.Dianne Hackborn2013-03-062-0/+278
| | | | | | | | | | | | | | | | This serves as a complete, formal layout, with attributes and all that good stuff. Intended for use as sample code in the java docs. Change-Id: Ic45b9387d724bf574e2bfb8970b26c7b47fc0a2b
* | Add API demo for WindowInputToken.Dianne Hackborn2013-03-041-0/+106
| | | | | | | | Change-Id: I2c1521caa30545411f34e57ad2f5eceb16c0b2b1
* | Add new action bar demos:Dianne Hackborn2013-02-272-2/+31
| | | | | | | | | | | | | | | | - Buttons for showing/hiding action bar and system UI in the basic action bar demo. - New system UI demo that uses a non-overlay action bar. Change-Id: Id3fbaa77365476489c558a2a43855a01f383551c
* | Clean up of system UI flag demo, doc markup for overscan demo.Dianne Hackborn2013-02-251-7/+5
| | | | | | | | Change-Id: Iaef99a4c1aeebbd327bcbc42b27d20c8065f8d27
* | Add option to toggle the new overscan mode.Dianne Hackborn2013-02-191-0/+20
|/ | | | Change-Id: I552a1c8b36650c558fe6f4e3e1a9e40137d7274f
* Fixes to GridLayout demos.Philip Milne2012-11-013-34/+70
| | | | | | | | | | Include a GridLayout version of the "Simple Form" example provided in the LinearLayout and RelativeLayout demos. Make the existing Form demo work on all devices and orientations (it was previously too wide for portrait mode). Change-Id: Ia01d49230bc3ef3d2e70bc34e936c8b4b421b796
* Add sample code for the new widget android.widget.TextClockRomain Guy2012-10-311-0/+38
| | | | Change-Id: I0b65fcc35db8d9f15d9b7c4ada0658d806a601b8
* A few little tweaks to system ui flag demos.Dianne Hackborn2012-05-181-1/+2
| | | | Change-Id: Ib4c3b45e8d67200a2b4f3a8b0daee198b24bad0f
* Work on issue #6475693 OnSystemUiVisibilityChangeListener reporting...Dianne Hackborn2012-05-102-30/+91
| | | | | | | | ...incorrect visibility when the ActionBar overflow menu is opened Improve API demos. Change-Id: I3e831152a0dbb56270a80cf58e9441b55059c884
* Improvements to system UI demos.Dianne Hackborn2012-05-062-1/+77
| | | | | | | - 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
* Use new InputDevice.getVibrator() API.Jeff Brown2012-04-131-0/+27
| | | | | Bug: 6334179 Change-Id: I1e592fd1a58a8d0789548346aee1aff6ddb9d684
* Improve GameControllerInput demo with input device listeners.Jeff Brown2012-04-121-12/+69
| | | | | | | | | | 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
* Update Full Screen Modes to demostrate more modes.Dianne Hackborn2012-03-303-77/+607
| | | | | | | | | 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
* Multiple webviews could be a bad model for developers to follow.Teng-Hui Zhu2012-03-281-28/+1
| | | | | bug:6206492 Change-Id: Ib650dbd74b5a00e6e373db74afe7cad242538a9b
* Fix use of WebView.loadData() to avoid passing invalid encodingSteve Block2011-10-172-12/+11
| | | | | | | No change in behavior, as invalid encodings have always been ignored. Bug: 5125738 Change-Id: Ice8ccc2b82e3c5d28169788321dfbbfadb29b392
* Move GridLayout1/2 to here from GridLayoutTest in frameworks/base.Philip Milne2011-10-062-0/+145
| | | | Change-Id: Iff31b918a3fdf599a356107a418e056cf5663142
* Merge "remove LOW_PROFILE flag when setting HIDE_NAVIGATION, because it's ↵Scott Main2011-09-271-3/+2
|\ | | | | | | not needed in order to work"
| * remove LOW_PROFILE flag when setting HIDE_NAVIGATION, because it's not ↵Scott Main2011-09-211-3/+2
| | | | | | | | | | | | needed in order to work Change-Id: I4eb6aee12f00bc98d14e7f42476acaf75340ac26
* | fix custom view sample to scale text based on screen densityScott Main2011-09-211-1/+3
|/ | | | Change-Id: I2e08e90b7baa73a4e36bad9f6abb9364d7b471d1
* Add switch demoAdam Powell2011-08-311-0/+48
| | | | | | Added default on state and a listener triggering a toast. Change-Id: I79a89801d878b08fee55919e92044cd71f47108c
* Remove old fashioned expand/collapse techniques in SearchView examples.Amith Yamasani2011-08-101-17/+1
| | | | | | | These are not the recommended patterns any more. Bug: 5086888 Change-Id: If354ea5af0eaff33d0e572177a9e804d899d07e1
* Demonstration of the various fullscreen modes:Daniel Sandler2011-08-041-0/+185
| | | | | | | | | FLAG_FULLSCREEN, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_HIDE_NAVIGATION. Bug: 5052456 Change-Id: I3c23caa83a66b585ae1102e3d473f6e4f096840d
* New SearchView expansion using ActionBar feature.Amith Yamasani2011-07-252-4/+62
| | | | Change-Id: Ib0a4bdc45af65fdeeb354ee02de02b251fec471d
* ApiDemos: Fix array indexing bug in game controller demo.Jeff Brown2011-06-301-4/+5
| | | | Change-Id: Ic7f1ce8bed39b2c10dd0e583c3ad118095f14752
* Add a sample for handling hover events.Jeff Brown2011-06-282-0/+177
| | | | Change-Id: I9e19e09d3f5b8d0fd03f52cc8d88e6a12399d12f
* Update samples to use new getMotionRanges() API.Jeff Brown2011-03-082-3/+20
| | | | Change-Id: I6b67b7cd1f739b5b52ac32745f52bf0a092480a0
* Merge "Add a sample for HorizontalScrollView."Jeff Brown2011-02-251-0/+33
|\
| * Add a sample for HorizontalScrollView.Jeff Brown2011-02-251-0/+33
| | | | | | | | Change-Id: If5f59771182fdb1e76ac10e32a89257f047e6798
* | Add ViewPropertyAnimator for easy View animationsChet Haase2011-02-251-2/+2
|/ | | | | | | | 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
* New sample code for fragment support library.Dianne Hackborn2011-02-241-0/+49
| | | | | | Also tweak a few things to make the demos run on Donut. Change-Id: I298fdf8fb0f12ee6db10e66657a22e19a527811a
* Add a sample to demonstrate game controller usage.Jeff Brown2011-02-242-0/+1196
| | | | Change-Id: I86a91916a39f3a211b06016b163f8d4a6d4a5a3b
* Don't use the View drag-is-cross-app flagChristopher Tate2011-02-141-1/+1
| | | | | | | Tracking a framework change; this is descoped from the next release forthcoming from this branch. Change-Id: Ib0519cd0ee60ff0051185e60d38be2ac299f420b
* am b965e4af: am 0f911715: docs: add links to action bar and drag demos in ↵Scott Main2011-02-141-0/+7
|\ | | | | | | | | | | | | the index page * commit 'b965e4afc436902170f45bbfc5fac5569d40cb88': docs: add links to action bar and drag demos in the index page
| * docs: add links to action bar and drag demos in the index pageScott Main2011-02-141-0/+7
| | | | | | | | Change-Id: I3fb2bff96d958801d350b94e0b0193c71902a7a8
* | The drag/drop ApiDemo now uses a global drag, not local-onlyChristopher Tate2011-01-281-1/+1
|/ | | | | | Showing off the new View.DRAG_FLAG_GLOBAL feature. Change-Id: I3f857974a7334e00a891d93a70ecc7a85378cd68
* API change - bug 3370353 and bug 3370338Adam Powell2011-01-202-8/+8
| | | | Change-Id: I9da53f3260ca17713e793b420e477686ad23c7d3
* Merge "Remove illegal @Override on interface method." into honeycombXavier Ducrohet2011-01-171-1/+0
|\
| * Remove illegal @Override on interface method.Xavier Ducrohet2011-01-171-1/+0
| | | | | | | | | | | | Samples should compile with 1.5 Change-Id: I029ae9ded4237fd9d4d2d1dbf2c7c537afbbf36b
* | Follow API changes.Dianne Hackborn2011-01-171-2/+2
|/ | | | Change-Id: Ieb1df7fc0708f22aae3d851f74ade1343eb44e08
* Add some more API demos for themes.Dianne Hackborn2011-01-163-4/+52
| | | | | | | | | | 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