Android Coverflow issue on 4.0.3 Samsung Galaxy S2

android, coverflow

Solution

I just added

child.invalidate() 

before

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

so it becomes

protected boolean getChildStaticTransformation(View child, Transformation t) {

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

Problem

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.

Original source