简体   繁体   English

带有文本的Android Coverflow

[英]Android coverflow with text

I have implemented a coverflow using images.Now I want to place text below all the image in the coverflow. 我已经使用图像实现了一个Coverflow。现在,我想将文本放在Coverflow中所有图像的下方。 How can i do this? 我怎样才能做到这一点?

you can create your custom coverflow in android. 您可以在android中创建自定义Coverflow。 See custom coverflow 查看自定义Coverflow

http://www.inter-fuser.com/2010/02/android-coverflow-widget-v2.html http://www.inter-fuser.com/2010/02/android-coverflow-widget-v2.html

  • Now all you need is an activity to instantiate the Coverflow in it's onCreate method. 现在,您需要做的是一个活动,以实例化Coverflow的onCreate方法。 It also has an internal Class, ImageAdapter which we use as the adapter for the Coverflow widget, much as we would for a Gallery widget. 它还有一个内部类ImageAdapter,它用作Coverflow小部件的适配器,就像用于Gallery小部件的适配器一样。 It is also possible to use the Coverflow widget when it is specified in an XML layout file. 在XML布局文件中指定Coverflow小部件时,也可以使用它。 create a view having one image view and textview to the below of image view pass that view to the adapter 创建一个具有一个图像视图的视图,并在该图像视图的下方创建一个textview,将该视图传递给适配器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM