Open Kolyall opened 8 years ago
As far as I know, this option has not been provided yet.
I modified the library a bit, and now you can set the border color. You can either set the color as a String
or as a Color
.
TextDrawable itemdrawable = TextDrawable.builder()
.beginConfig()
.withBorder(4, "#009688") /* thickness in px */
// or
.withBorder(4, Color.GREEN)
.endConfig()
.buildRound("AB", color);
Change the code of TextDrawable.java to this: https://gist.github.com/jossiwolf/3333379af7901771fc75
borderPaint.setAntiAlias(true);
Antialiasing
@jossiwolf Anyway you can create a pull request for border color modification?
@roman-ku Sure, I'll do it in the next few days.
@jossiwolf Actually don't bother, the maintainer has several open pull requests (one of them already being border color), and he hasn't merged any of them.
TextDrawable.builder()
.beginConfig()
.withBorder(4) /* thickness in px */
.toUpperCase()
.endConfig()
.buildRound("AB", color);
How to set this border color?