TextDrawable icon indicating copy to clipboard operation
TextDrawable copied to clipboard

The letter is missing in the image.

Open iamtrk opened this issue 8 years ago • 2 comments

Hi,

I am creating TextDrawable in following way, but the resulting image doesn't contain the letter. Could you please check what i am missing.

maven { url 'http://dl.bintray.com/amulyakhare/maven' }

compile 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'

ColorGenerator generator = ColorGenerator.MATERIAL; // or use DEFAULT // generate random color int color1 = generator.getRandomColor(); TextDrawable drawable = TextDrawable.builder() .beginConfig() .width(50) // width in px .height(50) // height in px .endConfig() .buildRound("X", color1);

leftImage.setImageDrawable(drawable);

iamtrk avatar Jun 21 '16 13:06 iamtrk

Im having the same problem. Did you solve this?

summers314 avatar Jun 28 '16 13:06 summers314

Same problem. Not sure whats causing it, although it seems to happen when I set the height and width in the config.

bpappin avatar Oct 12 '18 16:10 bpappin