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 - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

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

java - Reading data from multiple zip files and combining them to one -