I am trying to have a single color bg canvas, but it does not work. Perhaps I can create an array of the same color and bitmap, but if possible I would like to avoid this. RE: Android canvas background color
private void addCustomMarker(GoogleMap map, ActivePoint a, LatLng latLng) { Bitmap.Config conf = Bitmap.Config.ARGB_8888; Bitmap userBmp = Utils.decode(a.mCreatorUser.getmImgBase64Thumb()); Bitmap dogBmp = Utils.decode(a.mCreatorDog.getmImgBase64Thumb()); int border_width = 10; int width, height = 0; width = userBmp.getWidth() + dogBmp.getWidth(); height = userBmp.getHeight() > dogBmp.getHeight() ? userBmp.getHeight() : dogBmp.getHeight(); Bitmap cs = Bitmap.createBitmap(width+border_width*2, height+border_width*2, Bitmap.Config.ARGB_8888); Canvas canvas1 = new Canvas(cs);
source share