使用 3d Carousel 项目创建 SPB Carousel 样式 [英] Using 3d Carousel project to create SPB Carousel style

查看:24
本文介绍了使用 3d Carousel 项目创建 SPB Carousel 样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想利用这个项目(我真的很喜欢!:)

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

并改变每个项目的角度以获得类似伟大的 SBP 3D shell 的东西(我不会像他们那样用 NDK 编写它,这只是为了证明我的目标):

spb.com/android-software/shell/

为了更清楚,请看:https://picasaweb.google.com/106652356915046/July302012#5771003229411069650" rel="nofollow">https://picasaweb.google.com/106652356915040256/July3020780725691580720756128018012012012

我想获得#2,而不是#1(我现在可以通过我提到的第一个项目获得).

我必须使用 api 级别 10,所以 CarouselView 没有帮助我...

提前致谢,伊莱拉姆.

找到解决方案 (:

修改 Carousel.getChildStaticTransformation().mCamera.translate() 之后,mCamera.getMatrix() 之前添加:

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

完美运行!

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.

解决方案

Found the solution (:

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

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

works perfect!

这篇关于使用 3d Carousel 项目创建 SPB Carousel 样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆