Android YouTube 画廊外观
有人知道如何实现类似于蜂窝 youtube 画廊外观的东西吗?我看过这些链接:
http://www.inter-fuser .com/2010/01/android-coverflow-widget.html http://www.codeproject.com/KB/android/androcarousel.aspx?display=Print
但我不知道我必须对对象进行哪些转换才能获得圆形外观。因为使用上面示例中的代码,不提供对图库内的对象(项目)的转换。我在某处读到这可以使用 OpenGL 来完成,但我在想是否可以以某种方式避免它。如果有人有任何想法,请与我分享。我真的很想实现这个。提前谢谢你。
Does someone knows how to implement something similar to honeycomb youtube gallery look? I have seen these links:
http://www.inter-fuser.com/2010/01/android-coverflow-widget.html
http://www.codeproject.com/KB/android/androcarousel.aspx?display=Print
but I don't know what transformations do I have to do to the object to be able to get that rounded look. Because using the code from the examples above, does not provide transformations to the objects (items) inside the gallery. I read somewhere that this can be done using OpenGl, but I was wandering if it could be somehow avoided. If someone has ANY idea, please share it with me. I really want to implement this. Thank u in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这可以使用渲染脚本来完成。有一个示例 CarouselExample (http://code.google.com/p/android-ui-utils/downloads/detail?name=CarouselExample.zip&can=1&q=) 我可以修改,但需要学习 renderscript 需要做很多工作,这样您才能完全理解代码并开始使用它。但这就是要走的路。
This can be done using renderscript. there is an example CarouselExample (http://code.google.com/p/android-ui-utils/downloads/detail?name=CarouselExample.zip&can=1&q=) that can me modified, but it takes a lot of work to get to learn renderscript so you can understand the code completely and start using it. But this is the way to go.