mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(imageview): apply ColorFilter in ImageView (#110)
This commit is contained in:
committed by
Manol Donev
parent
c2cd53fe5f
commit
bdb65591a6
@@ -315,6 +315,10 @@ public class ImageView extends android.widget.ImageView implements BitmapOwner {
|
|||||||
paint.setAntiAlias(true);
|
paint.setAntiAlias(true);
|
||||||
paint.setFilterBitmap(true);
|
paint.setFilterBitmap(true);
|
||||||
paint.setShader(bitmapShader);
|
paint.setShader(bitmapShader);
|
||||||
|
ColorFilter filter = this.getColorFilter();
|
||||||
|
if (filter != null) {
|
||||||
|
paint.setColorFilter(filter);
|
||||||
|
}
|
||||||
canvas.drawPath(path, paint);
|
canvas.drawPath(path, paint);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user