ListView selected item drawable

前端 未结 3 1504
面向向阳花
面向向阳花 2020-12-21 06:55

I have a problem in my ListView. I want to change the background of selected item when I select it to a custom drawable that I have, but it doesn\'t work.

I want t

3条回答
  •  青春惊慌失措
    2020-12-21 07:37

    You should use CheckableFrameLayout as list item view. You can find it here - CheckableFrameLayout

    You can see there, that when you click the list item, it changes background drawable to anything you want.

提交回复
热议问题