In my application, I apply the transparent background to my ListView\'s CustomListItem at runtime. For that I use, convertView.setBackgroundColor(android.
ListView
convertView.setBackgroundColor(android.
android.R.color.transparent is a resource id (referring to a transparent color definition) - View.setBackgroundColor(int) expects an actual int color.
android.R.color.transparent
View.setBackgroundColor(int)
Use View.setBackgroundResource(int) instead, which will load the actual color from resources.