2011-08-05 89 views

回答

3

Set ListView.setBackgroundColor(0x00000000),而不是ListView.setBackgroundDrawable(null)。

0

为了使它再次可见,再次使用setBackgroundDrawable()不传递null。

+0

我不想再次在我的ListView上有任何背景。但设置mListView.setBackgroundColor(0x00000000)似乎有伎俩。 – Guillaume

+0

嗯,是的,我要说的尝试setBackgroundColor以及...很高兴它工作:) – Jack