ListView scrollbar not displayed after ListView.setBackgroundDrawable(null)
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.
精彩评论