ListViewDraggingAnimation 在 Android 5 Lollipop 上损坏 [英] ListViewDraggingAnimation broken on Android 5 Lollipop

查看:18
本文介绍了ListViewDraggingAnimation 在 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆