我正在使用 openaphid Flipview 库在我的应用程序中翻转动画。一切正常,但是当我向前翻转时会出现白色闪光。向后工作正常。我认为开发人员现在无法提供支持。有没有人解决这个问题?
我已经尝试了此链接中提到的所有内容,但没有任何效果
好的。稍微解决了这个问题。会在这里张贴。延迟 hideFlipAnimation() 方法中的处理程序,它在一定程度上解决了 flash 问题。不是一个非常干净的方法,但现在可以工作,直到找到更稳定的修复程序。
private void hideFlipAnimation() {
if (inFlipAnimation) {
inFlipAnimation = false;
updateVisibleView(bufferIndex);
if (onViewFlipListener != null) {
onViewFlipListener.onViewFlipped(bufferedViews.get(bufferIndex), adapterIndex);
}
handler.postDelayed(new Runnable() {
public void run() {
if (!inFlipAnimation) {
cards.setVisible(false);
surfaceView.requestRender(); //ask OpenGL to clear its display
}
}
},200);
}
}