android - Drawable setColorFilter not work on Nexus 7 -


i want change color of android design drawable blue. piece of code in application class oncreate method:

drawable drawable = getresources().getdrawable(r.drawable.rating_not_important); drawable.setcolorfilter(0xff1565c0, mode.src_atop); drawable = getresources().getdrawable(r.drawable.rating_important); drawable.setcolorfilter(0xff1565c0, mode.src_atop);     

it works on emulator (api 4.0.3) , xperia p mobile device (api 4.1.2), not work on nexus 7 tablet. star drawable has default white color no change.i have tested mode.multiply , mode.lighten , no success. please help!


Comments

Popular posts from this blog

javascript - ScrollTo Effect (href to div) -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -