开发者

ListView scrollbar not displayed after ListView.setBackgroundDrawable(null)

开发者 https://www.devze.com 2023-03-26 18:19 出处:网络
I have a listView with a background, scrollbar is showing as wanted. But when I rewove the background with ListView.setBackgroundDrawable(null), the scroll开发者_JS百科bar does not show anymore.

I have a listView with a background, scrollbar is showing as wanted. But when I rewove the background with ListView.setBackgroundDrawable(null), the scroll开发者_JS百科bar does not show anymore. Is this the normal behavior ? How to make it visible again ? Thanks


Set ListView.setBackgroundColor(0x00000000) instead of ListView.setBackgroundDrawable(null).


To make it visible again, use setBackgroundDrawable() again not passing null.

0

精彩评论

暂无评论...
验证码 换一张
取 消