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

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -