I have a used custom marker in my Google Map App with help of Bitmap and canvas . The image on marker is coming fine when i run it on device with android version 5.1 or any other except 4.4.
I am sure its not a version issue . but i am confused and unable to figure out where i done mistake . Please help me to find it .
Custom marker (Bitmap) Code:
Bitmap.Config conf = Bitmap.Config.ARGB_8888;
Bitmap bmp = Bitmap.createBitmap(128, 128, conf);
Canvas canvas1 = new Canvas(bmp);
canvas1.drawBitmap(BitmapFactory.decodeResource(getResources(),
R.drawable.map_markers_green), 0, 0, color);
canvas1.drawText(String.valueOf(a).toUpperCase(), 56, 53, color);
googleMap.addMarker(new MarkerOptions()
.icon(BitmapDescriptorFactory.fromBitmap(bmp))
// Specifies the anchor to be at a particular point in the marker image.
.anchor(0.5f, 1));
Marker image which is working fine on device:
Same marker image which is coming cut on different device :