if (getAbsListView() instanceof GridView && Build.VERSION.SDK_INT >= 11) {
delay += getAnimationDelayMillis() * ((mLastAnimatedPosition + 1) % ((GridView) getAbsListView()).getNumColumns());
}
GridView 类型的方法 getNumColumns() 未定义
清单设置:
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />