I was just trying to combine a map marker icon with FontAwesomeIcon/MaterialIcon.
The problem is that resulting image is not filled. For example:
IconDrawable iconDrawable = new IconDrawable(
context, icon
).color(
context.getResources().getColor(R.color.primary_color)
).sizePx(64);
// Let's create an empty bitmap...
Bitmap iconBitmap = Bitmap.createBitmap(64, 64, Bitmap.Config.ARGB_8888);
// ...and a corresponding Canvas
Canvas iconCanvas = new Canvas(iconBitmap);
iconDrawable.draw(iconCanvas);
// At this point, iconBitmap contains only borders of an icon.
// I tried with different icons with same result.
Here's a screenshot demonstrating a problem:
At the same time, other drawables (PNG etc) are drawn just fine using the same method.
I was just trying to combine a map marker icon with FontAwesomeIcon/MaterialIcon. The problem is that resulting image is not filled. For example:
Here's a screenshot demonstrating a problem:
At the same time, other drawables (PNG etc) are drawn just fine using the same method.
Any ideas? Thanks!