hi,

say i have white-only-with-alpha NinePatchDrawable and depending on
state i'd like to colorify it and finally to setBackgroundDrawable for
some Views.

i thought i could use StateListDrawable:

sld = new StateListDrawable()

// repeat this for every color/state
drawable = res.getDrawable(resId)
drawable.setColoFilter(colorN, Mode.SRC_ATOP)
sld.addState(stateN, drawable)

// set drawable
view.setBackgroundDrawable(sld)

but, i see my drawable in different states but it seems that
ColirFilter is not used.

what am i missing?

thanks
pskink
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to