本文介绍了ListViewDraggingAnimation打破Android上5棒棒糖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用ListViewDraggingAnimation通过 DevBytes ,但似乎在Android上开发棒棒糖preVIEW 2(LPX13D)打破。当我比其他行拖动行,这些行就会消失,变得不再可点击(见下文)。我尝试禁用硬件加速的列表视图,但没有任何效果。

I'm using ListViewDraggingAnimation by DevBytes, but it seems broken on Android Lollipop developer preview 2 (LPX13D). When I drag a row over other rows, those rows will disappear and become no longer clickable (see below). I tried disabling hardware acceleration for the listview but it didn't have any effect.

任何人都经历了同样的问题?任何提示?感谢:)

Has anyone experienced the same issue? Any hints? Thanks :)

推荐答案

我发现这个问题。它来自这个标志。 StableArrayAdapter.hasStableId

I found the problem. It came from this flag. StableArrayAdapter.hasStableId.

它解决所有的问题,从这个观点上的棒棒糖。

It fix all problem from this view on Lollipop.

@Override
public boolean hasStableIds()
{
    return android.os.Build.VERSION.SDK_INT < 20;
}

这篇关于ListViewDraggingAnimation打破Android上5棒棒糖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-20 17:35