Answer the question
In order to leave comments, you need to log in
How to change the background of a listview item?
Hello, I have a listView, I did everything according to this example
. Everything is fine, everything works, but can I somehow change the background of a certain element? And I need to somehow set the background color in this format: #ff1dcc4c
Thank you very much in advance!
Answer the question
In order to leave comments, you need to log in
listView.getChildAt(position).setBackgroundColor(Color.parseColor("#ff1dcc4c"));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question