Why set setBackgroundColor is not working in my custom listView
I have a custom listView. The main layout xml is something like this: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="match_parent"> <ListView android:layout_height="wrap_content" android:id="@+id/lv_clientes" android:layout_width="0dp"> </ListView> <!-- From this part there are not problems --> </LinearLayout> The list item XML is this <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res