Using 3d Carousel project to create SPB Carousel style

做~自己de王妃 提交于 2019-12-06 14:57:35

问题


I want to make use of this project (which I really liked! :)

http://www.codeproject.com/Articles/146145/Android-3D-Carousel

And change each item's angle to get something like the greate SBP 3D shell (I'm not going to write it with NDK like them, it's just to demonstrate my goal):

spb.com/android-software/shell/

To make it clearer, look at this: https://picasaweb.google.com/106652353498756915046/July302012#5771003229411069650

I want to get #2, instead of #1 (which I can get now with the 1st project i mentioned).

I have to work with api level 10, so CarouselView is not helping me...

Thanks in advance, Eliram.


回答1:


Found the solution (:

Modify Carousel.getChildStaticTransformation(). after mCamera.translate(), and before mCamera.getMatrix() add:

mCamera.rotateY(-(CarouselImageView)child).getCurrentAngle());

works perfect!



来源:https://stackoverflow.com/questions/11726377/using-3d-carousel-project-to-create-spb-carousel-style

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!