V
V
Vanes Ri_Lax2015-07-28 14:29:02
Java
Vanes Ri_Lax, 2015-07-28 14:29:02

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

1 answer(s)
A
Andrey Gostishchev, 2015-07-28
@MERCH_music

listView.getChildAt(position).setBackgroundColor(Color.parseColor("#ff1dcc4c"));

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question