2011-08-05 87 views

回答

3

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

0

爲了使它再次可見,再次使用setBackgroundDrawable()不傳遞null。

+0

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

+0

嗯,是的,我要說的嘗試setBackgroundColor以及...很高興它工作:) – Jack