The first method: Using R.color, uses more resources simply because you have to generate another R variable and the extra definition in XML, and to parse the XML. The difference is a few bytes. I'd stick to having the colors as some form of global variables.
When I use setBackgroundColor(R.color.bg_col) it sets black color(!?),
but setBackgroundResource(R.color.bg_col) does the right job ?
Users browsing this forum: Google [Bot] and 4 guests