如何创建android的水平旋转视图?视图、水平、android

2023-09-07 12:22:54 作者:萌妹咿呀哟

在我的Andr​​oid应用我想要实现旋转木马为7次。

In my Android application I want to implement Carousel for 7 views.

我的旋转木马已经表明,像在这个第一映像的链接

My carousel has to show like the 1st image in this link

.

我已签出几个环节和一些演示的例子也像这样的 SVN链接,但

I have checked out couple of links and some demo examples also like this one svn-link, but

所有的1日其偶数的意见,在这里我只有7次

1st of all its for even number of views, where i have only 7 views

其次它增加了从属性的XML及其所有内容,我想preFER增加了code中的意见,

secondly it adds all its content from attribute xml, I would prefer adding the views by code,

和我并不需要一个完整的圆形旋转木马,只是一个弧形是没问题。

and I don't need a complete circular carousel, just an Arc shaped is fine with me.

presently我已经使用的CoverFlow,但经历了太多的错误这是不那么容易解决的。

Presently I have used coverflow, but experiencing too many bugs which is not so easy to solve.

请帮助我做一些演示,或者例如旋转木马,越简单越好。

Please help me with some demo, or example of carousel, simpler is better.

或者,如果使用任何其他方法我可以告诉我的名单这种方式,任何一种思想或暗示的高度AP preciated。

Or if using any other procedure I can show my list this way, any kind of ideas or hint is highly appreciated.

感谢

推荐答案

请参阅此CoverFlow的小部件,它就像一个ListView作品所以它是非常简单的使用:

See this coverflow widget, It's works like a listView so it is very simple to use :

http://www.inter-fuser.com/ 2010/01 / Android系统的CoverFlow - widget.html

步骤:

在类路径中导​​入库类 的ListView相反,使用的CoverFlow; 写您的coverflowAdapter,这里将只包含图片(请参见链接样品code) 适配器设置为您的CoverFlow

希望它能帮助!