createbitmap

Android Drawable Marker with Bitmap Text Overlay too Small

对着背影说爱祢 提交于 2019-12-11 23:36:46
问题 I am creating a Marker with text but the text is showing only 3 characters and very small and it is right of the bit map image. I want the text to go across the middle of the icon and it big font. I manually increased setFontsize to larger size did not work and also drawText width and height still did not work. private Drawable createMarkerIcon(Drawable backgroundImage, String text, int width, int height) { Bitmap canvasBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); /