使用3D旋转木马项目,以创建国家邮政局旋转木马风格 [英] Using 3d Carousel project to create SPB Carousel style

查看:193
本文介绍了使用3D旋转木马项目,以创建国家邮政局旋转木马风格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

HTTP://www.$c$cproject.com/文章/ 146145 / Android的3D传送带

和改变每个项目的角度来得到类似的马丽娟SBP三维壳(我不会用NDK像他们写的,它只是为了证明我的目标):

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 /

spb.com/android-software/shell/

要说得清楚,看看这个: 的https://picasaweb.google.com/106652353498756915046/July302012#5771003229411069650

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

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

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

我有一个API级10的工作,所以CarouselView不会帮助我......

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

在此先感谢, Eliram。

Thanks in advance, Eliram.

推荐答案

找到了解决办法(:

修改Carousel.getChildStaticTransformation()。 在 mCamera.translate()和前 mCamera.getMatrix()补充:

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

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

完美的作品!

这篇关于使用3D旋转木马项目,以创建国家邮政局旋转木马风格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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