summaryrefslogtreecommitdiffstats
path: root/carousel/test/src/com/android/carouseltest
Commit message (Collapse)AuthorAgeFilesLines
* Fix unreported bug with CarouselTestActivity where incorrect items were shown.Jim Miller2011-05-051-4/+23
| | | | | | | | | | | | The count was wrong for the number of items in the allocation pool since we now prefetch more data. Add demo code to show dialogs for events generated by Carousel (select texture, select detail, long press). Some other minor code cleanups. Change-Id: Iebecd1945c115d96bd60a3968985c1b104b586d6
* Fix 3404464: Add scale-down animation to CarouselJim Miller2011-03-021-0/+5
| | | | | | | | This changes the behavior to avoid snapping back to the original size, which was a very jarring effect. Instead, Carousel now has a scale-down animation that is triggered when the user releases the item. Change-Id: I81a91e65d0da991a98211f2ecb92fa89c8c81e22
* Fix bitrot in Carousel demo.Jim Miller2011-01-171-1/+1
| | | | Change-Id: I4151f20458b72f339bf636f7324b8dbbe33e6635
* Allow carousel apps to receive taps on detail texturesJim Shuma2010-11-111-0/+5
| | | | Change-Id: I909edf4f05e268a00a3727fa684f3d83360e2225
* Several improvements to Carousel:Jim Miller2010-11-021-15/+1
| | | | | | | | | - Use pool of allocations to reduce GCs in Carousel. - Hold of selection scale animation for 100ms - Fixed bug with detail ruler not being drawn at pixel coordinates. - Fixed bug where adding cards caused all cards to be refreshed. Change-Id: I0ca254b6b3c3e4d9b2ce6575d25c8ede59b0a075
* Major improvement to Carousel dragging.Jim Miller2010-10-281-0/+1
| | | | | | | | This change adds new drag choices to Carousel: DRAG_MODEL_PLANE, DRAG_MODEL_CYLINDER_INSIDE and DRAG_MODEL_CYLINDER_OUTSIDE. The old drag model is still available as DRAG_MODEL_SCREEN_DELTA. Change-Id: I339c21ceaa493fb302c6b57adebfa2063a68d69a
* Carousel performance improvements.Jim Miller2010-10-282-4/+4
| | | | | | | | | | | | | | | This change disables depth and changes the background bitmap for the test case to 256x256 instead of 512x512. With these two changes, Carousel consistently achieves 87fps with no background and 78fps with. Both tests were with sync-to-vblank disabled. It also cleans up the program store names to have more meaningful names as we add new states. Upload after rebase. Change-Id: I6008fbd89fbe924dbea10792b3f787fe69586fa0
* Switch to using ModelViewController-based CarouselViewJim Shuma2010-10-223-5/+16
| | | | Change-Id: I5cd2ff8ce9b2102ab6b10f6d6a41f87e0f3a06f3
* Several major improvements to Carousel:Jim Miller2010-10-141-1/+1
| | | | | | | | | | | | Improved selection criteria. It now looks for the finger to move less than a minimum distance (currently 50 pixels) before allowing that card to be selected or the carousel to move. Greatly simplified animation detection logic. Started adding new motion model methods. Change-Id: I8a7dc85dcfe547ff7bc024ba8be941bb787075ec
* Fix bug where resizing cards array caused cards to get reloaded.Jim Miller2010-10-051-1/+14
| | | | Change-Id: I090dd17a01dada63461708760454f073b4b7cb13
* Fix 3061600: Allow scrolling to last few items in CarouselView.Jim Miller2010-10-041-5/+2
| | | | | | | | | This fixes a bug where the last few items cannot be scrolled to. The code now follows visibleDetailCount to allow scrolling all cards into the "visible area" for inspection and selection. Change-Id: I0fded18f0f7ac2828385164b287fec2f522dc3a0 Fixes: Music2, Books, Recents.
* Major performance improvements to Carousel:Jim Miller2010-10-041-1/+1
| | | | | | | | | | | | | | | | | Use single-texture shader when we don't need to blend. Gets us to solid 55 fps in steady-state. Add lineOffset parameter to DetailTextureParameters to allow apps to set an offset from the top of screen. Minor refactoring of picking rays in prep for oblique frustum support. Added 'debugRendering' flag to carousel.rs. Updated CarouselTestActivity to demonstrate use of new properties. Change-Id: I472e442a092ef83445ac30eb64265d49af022261
* More improvements to Carousel.Jim Miller2010-09-302-5/+30
| | | | | | | | Added new blending mode and render back-to-front for default view. Added new "rez-in" effect for last few cards (selectable). Added time-lapse fade-in as new textures become available. Change-Id: Ic5e662bcd59fee127227a00529dd868342957a9f
* Major improvements to Carousel.Jim Miller2010-09-263-411/+146
| | | | | | | | | | | Added CarouselViewHelper class to simplify writing applications that use the widged. Updated examples to use new CarouselViewHelper class. Added sample "lighting" to CarouselTestActivity. Change-Id: I1b4a7e0d79f94781add16e1d2e7ec8b4657744d8
* Fix bug where power-of-two textures were showing up black in Carousel.Jim Miller2010-09-161-2/+2
| | | | Change-Id: Id1a578f63e137eadca4bb1419863fcd2db154dcb
* Fix for potential memory corruption in RS when cardcount = 0Jim Miller2010-09-151-4/+0
| | | | | | | | | | | | | This bug is related to a previous workaround for a limitation in RS where an allocation cannot have a size of 0. Instead of creating the allocation, it would set the allocation to null. This workaround always allocates at least one card and adds a shadow variable to indicate when the array is valid. Also added checks for negative numbers. Change-Id: Icc37f5da048b8177b93b05472a093f695e6ecc86
* Expose setting the background color of the Carousel.Jim Miller2010-09-151-2/+4
| | | | | | | Switch setBackgroundColor() api from Float4 to float to avoid forcing apps to explicitly import RenderScript Float4 data type. Change-Id: I650ac0a74cd2abce489a9526652e1c31a93ea9be
* Add detail text to Carousel and CarouselTestActivity.Jim Miller2010-09-153-35/+121
| | | | | | | | Add better documentation to CarouselView. Remove unnecessary log spew. Updated documentation after review. Change-Id: I13df9f9bcac8898b198e3dbf06b11ae7522dc8f1
* Add an API to report the first card position.Jack Palevich2010-09-153-0/+10
| | | | Change-Id: I07072569f9e02a327aed4a2b13b3748899687b33
* Add background texture support to Carousel widget.Jim Miller2010-09-031-0/+1
| | | | | | This allows an application to specify a background texture to draw behind the carousel. Change-Id: I2eefc3fe460acf704a46d80698c0aae493e9de58
* Add carousel as static library to build.Jim Miller2010-09-024-0/+785
Change-Id: I5e3eb0a6c3ea6deeee3856c486bbb469c8d20360