ListViewDraggingAnimation 在 Android 5 Lollipop 上损坏 [英] ListViewDraggingAnimation broken on Android 5 Lollipop
问题描述
我正在使用 ListViewDraggingAnimation by DevBytes,但它在 Android Lollipop 开发者预览版 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
.
它解决了 Lollipop 上此视图中的所有问题.
It fix all problem from this view on Lollipop.
@Override
public boolean hasStableIds()
{
return android.os.Build.VERSION.SDK_INT < 20;
}
这篇关于ListViewDraggingAnimation 在 Android 5 Lollipop 上损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!