i want to assign a background to the card view layout from recycler view adapter code by using a xml from drawable. How can i do this by use kotlin language.
Asked
Active
Viewed 52 times
0
-
Does this answer your question? [Change the background color of CardView programmatically](https://stackoverflow.com/questions/26561122/change-the-background-color-of-cardview-programmatically) – Henry Twist Apr 01 '21 at 14:43
-
Can you post your recycler item XML layout and recycler view adapter's code? – lpizzinidev Apr 01 '21 at 15:51
-
.setBackgroundResource is worked. Thx – Ersin Coskun Apr 01 '21 at 22:30