Open Bekakk opened 7 years ago
you could try
public void setDrawableText(String text, int fontSize, int textColor,int backgroundColor) {
drawable = TextDrawable.builder()
.beginConfig()
.fontSize(fontSize).toUpperCase().useFont(typeface).textColor(textColor)
.endConfig()
.buildRound(text, backgroundColor);
if (imageView != null && drawable != null)
imageView.setImageDrawable(drawable);
}
p.s. first time to use markdown, sorry if it looked terrible :/
Hi I'm using your Repo.I try to change background and text color same time.How I can do this? Here is my source
` public void setDrawableText(String text, int fontSize, int textColor,int backgroundColor) { drawable = TextDrawable.builder(). beginConfig(). fontSize(fontSize).toUpperCase(). useFont(typeface). endConfig(). buildRound(text, textColor);