android recyclerview: how do I programmatically select TextView background color?

前端 未结 2 953
一向
一向 2021-01-27 20:41

I have a RecyclerView list of CardViews. On each CardView, the user previosuly selected the \"type\" from a dropdown dialog. The type choices are \"Work\" and \"Home\". The t

2条回答
  •  情歌与酒
    2021-01-27 21:05

    when user click on the option, update the required object in the list, listItems. Then call notifyDataSetChanged() method in your adapter.

提交回复
热议问题