User is now able to crop custom images

This commit is contained in:
Michael Schättgen 2018-06-06 21:57:38 +02:00
parent 04e6e36811
commit d8bfe2e947
5 changed files with 36 additions and 5 deletions

View file

@ -15,6 +15,8 @@ public class TextDrawableHelper {
ColorGenerator generator = ColorGenerator.MATERIAL;
int color = generator.getColor(s);
return TextDrawable.builder().buildRound(s.substring(0, 1).toUpperCase(), color);
return TextDrawable.builder().beginConfig()
.width(100)
.height(100).endConfig().buildRect(s.substring(0, 1).toUpperCase(), color);
}
}