本文介绍了在4.0.3三星Galaxy S2的Andr​​oid的CoverFlow问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是安卓的CoverFlow,并能正常工作在大多数的设备,但它似乎在安卓4.0.3不把中间的图像回到中心后,你来回滑动。

I'm using android coverflow, and it works fine on most of devices, but it seems that in Android 4.0.3 it does not put the center image back to the center once that you slide back and forth.

他们仍然卡住,错误的角度下。

They remain "stuck" and under the wrong angle.

没有人也有类似的问题?什么可能导致此行为?

Did anyone had similar issues? What could cause this behavior?

在附加的图像上,这样中间的图像应该是居中的,而不是角度,因为它是。

So middle image on the attached image should be centered and not angled as it is.

推荐答案

我只是说

child.invalidate()

final int childCenter = getCenterOfView(child); in getChildStaticTransformation(View child, Transformation t)

所以它成为

protected boolean getChildStaticTransformation(View child, Transformation t) {

    child.invalidate();
    final int childCenter = getCenterOfView(child);
    final int childWidth = child.getWidth();
    int rotationAngle = 0;

这篇关于在4.0.3三星Galaxy S2的Andr​​oid的CoverFlow问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 23:10