Android listselector not visible in custom listview

后端 未结 1 1709
一个人的身影
一个人的身影 2021-01-15 14:35

I have made a custom list having image and textview. On setting the styles, the selector is not visible. The style is invoked using setTheme(R.style.rose); in create method

相关标签:
1条回答
  • 2021-01-15 15:27

    Android first draws the ListView background as well as the dividers. Then, the system draws the list selector. Finally, ListView renders all itemviews on top of that. So the list selector will never be visible with opaque background set to itemviews

    http://android.cyrilmottier.com/?p=454

    enter image description here

    0 讨论(0)
提交回复
热议问题