| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: I4151f20458b72f339bf636f7324b8dbbe33e6635
|
|
|
|
| |
Change-Id: I909edf4f05e268a00a3727fa684f3d83360e2225
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: I5cd2ff8ce9b2102ab6b10f6d6a41f87e0f3a06f3
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: I090dd17a01dada63461708760454f073b4b7cb13
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: Id1a578f63e137eadca4bb1419863fcd2db154dcb
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Switch setBackgroundColor() api from Float4 to float to avoid
forcing apps to explicitly import RenderScript Float4 data type.
Change-Id: I650ac0a74cd2abce489a9526652e1c31a93ea9be
|
|
|
|
|
|
|
|
| |
Add better documentation to CarouselView.
Remove unnecessary log spew.
Updated documentation after review.
Change-Id: I13df9f9bcac8898b198e3dbf06b11ae7522dc8f1
|
|
|
|
| |
Change-Id: I07072569f9e02a327aed4a2b13b3748899687b33
|
|
|
|
|
|
| |
This allows an application to specify a background texture to draw behind the carousel.
Change-Id: I2eefc3fe460acf704a46d80698c0aae493e9de58
|
|
Change-Id: I5e3eb0a6c3ea6deeee3856c486bbb469c8d20360
|