是否可以通过即在可绘制对象上应用第一个颜色过滤器然后在变异的可绘制对象上应用第二个颜色过滤器来在可绘制对象上应用多个颜色过滤器?
示例代码:
@Override
public View getView(int position, View convertView, ViewGroup parent) {
View returnView = super.getDropDownView(position, convertView, parent);
Drawable d = returnView.getBackground();
d.setColorFilter(0xFFF1F633, PorterDuff.Mode.MULTIPLY);
// overrides the first color filter
d.setColorFilter(0xFFEEEEEE, PorterDuff.Mode.LIGHTEN);
returnView.setBackgroundDrawable(d);
return returnView;
}