TextDrawable
TextDrawable copied to clipboard
The letter is missing in the image.
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);
Im having the same problem. Did you solve this?
Same problem. Not sure whats causing it, although it seems to happen when I set the height and width in the config.