的CoverFlow与自定义适配器自定义、适配器、CoverFlow

由网友(阳光和你.)分享简介:我要创建自定义适配器(图片查看缩略图,文本查看标题,进度条,指示一些进展。)封面流。I want to create a cover flow with custom adapter (Image View as Thumbnail, Text View as Title, Progress Bar that ind...

我要创建自定义适配器(图片查看缩略图,文本查看标题,进度条,指示一些进展。)封面流。

I want to create a cover flow with custom adapter (Image View as Thumbnail, Text View as Title, Progress Bar that indicates some progress..).

所有的例子或Cover Flow功能部件的实现是基于画廊(巫支持图片的集合,只)。

All the examples or the implementations of the Cover flow widget are based on Gallery (witch supports a collection of Images, only).

有没有任何提示,想法,可以帮助我吗?

Is there any hints, ideas that may help me?

感谢您:)

推荐答案

这是比较容易做到的;使用同一个适配器与例如列表视图。扩展BaseAdapter,使用ViewHolder模式,并返回你的放大视图中的

This is rather easy to do; you use the same adapter as with for example a listview. Extend the BaseAdapter, use the ViewHolder pattern and return your inflated view in the

public View getView(int position, View convertView, ViewGroup parent) {

方法。但是,你应该修改

method. But you should change the

 transformImageBitmap(THIS child, Transformation t, int rotationAngle) 

transformImageBitmap(查看孩子,变换T,INT rotationAngle)

transformImageBitmap(View child, Transformation t, int rotationAngle)

在CoverFlow.java否则你会得到的ClassCastException。

in the CoverFlow.java or you'll get ClassCastExceptions.

阅读全文

相关推荐

最新文章