I have a simple listView with 4 textview as items and I want to change the background color of each item in the listView programatically. It is important for my case to not be limited by pre-compiled color values or states, and the solution must imply changing background color after the listView has been displayed.
Is this possible, how?
So far I've tried stuff like:
listView.getAdapter().getView(0, null, null)..setBackgroundColor(Color.GREEN);
or
listView.getAdapter().getView(0, listView.getAdapter().getView(i, null, null), null).setBackgroundColor(Color.GREEN);
also invalidated views after this lines, but it does not work.
Best Regards.