I use those code to grey out a icon of RunningAppProcessInfo, but cause some side effect that all icon in other list greyed out too! SUP? Any solutions?
ImageView icon = (ImageView) view.findViewById(R.id.icon);
if (_isChecked) {
ColorMatrix cm = new ColorMatrix();
cm.setSaturation(0);
icon.setColorFilter(new ColorMatrixColorFilter(cm));
}
If you’re talking about a ListView here or something then do it like this:
Reason for this being that views are reused in a ListView for performance.