Android: openaphid/android 翻转白色闪烁问题

Android: openaphid/android flip white flashes issue

我正在使用 openaphid flipview 库在我的应用程序中进行翻转动画。一切正常,但当我向前翻转时出现白色闪光。向后工作正常。我认为开发人员现在不提供任何支持。有人解决过这个问题吗?

我已经尝试了 this link 中提到的所有方法,但没有任何效果

OK.Somewhat 解决了这个问题。请问这里post吧。延迟 hideFlipAnimation() 方法中的处理程序,它在一定程度上修复了闪光问题。这不是一个非常干净的方法,但在找到更稳定的修复之前暂时有效。

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);
}

}