ListViewDraggingAnimation打破Android上5棒棒糖棒棒糖、ListViewDraggingAnimation、Android

2023-09-05 01:46:10 作者:. 时光吹老了好少年,

我用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;
}