而滚动列表行之间的保证金会消失? [英] Margin between list rows disappears while scrolling?

查看:133
本文介绍了而滚动列表行之间的保证金会消失?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序使用卡的用户界面布局。在我的物理设备(Android 2.3的),它显示正常时,列表不滚动:

I'm using a cards-UI layout in my app. On my physical device (android 2.3), It shows fine when the list is not scrolling:

但是,当我在滚动列表,保证金突然消失:

But while I'm scrolling the list, the margin suddenly disappears:

奇怪的是,它的发生在AVD。

Strangely, it doesn't happen on the AVD.

有谁知道是什么导致了这一点,我怎么能解决这个问题?

Does anyone know what's causing this and how can I solve this?

注:的如果code的任何部分帮助,请发表评论,所以我可以将它们添加。

Note: If any part of the code helps, please comment so I can add them.

推荐答案

在您的code试试这个,

Try this in your code,

android:cacheColorHint="#00000000"

这篇关于而滚动列表行之间的保证金会消失?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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