1

这最好用图片来描述。在滚动 my 之前ListView,一切看起来都很好:

在此处输入图像描述

滚动后:

在此处输入图像描述

什么可能导致这种奇怪的行为?我正在运行Android 4.2.2的Google Nexus上对其进行测试,并在运行Android 3.2的模拟器上进行了测试,结果相同。在此示例中,我使用具有两种类型行的 a,但使用仅具有一种行类型的标准得到相同的结果。ListViewListView

4

1 回答 1

0

It turns out the problem was that I did not set a background color in my layout XML file... If someone could explain to me why this fixes the problem, I would greatly appreciate it. Adding android:background="#000000" to my main layout fixed it, though.

....

于 2013-07-19T19:28:40.213 回答