Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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:

enter image description here

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

enter image description here

Strangely, it doesn't happen on the AVD.

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

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
188 views
Welcome To Ask or Share your Answers For Others

1 Answer

Try this in your code,

android:cacheColorHint="#00000000"

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...