在4.0.3三星Galaxy S2的Andr​​oid的CoverFlow问题问题、Galaxy、CoverFlow、oid

2023-09-05 08:08:34 作者:想象之中与众不同°

我使用的是安卓的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;