question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to set border color?

See original GitHub issue

TextDrawable.builder() .beginConfig() .withBorder(4) /* thickness in px */ .toUpperCase() .endConfig() .buildRound("AB", color);

How to set this border color?

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

3reactions
jossiwolfcommented, Jan 20, 2016

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

0reactions
roman-kucommented, Jan 4, 2017

@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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CSS border-color property - W3Schools
The border-color property sets the color of an element's four borders. This property can have from one to four values. If the border-color...
Read more >
border-color - CSS: Cascading Style Sheets - MDN Web Docs
When one value is specified, it applies the same color to all four sides. · When two values are specified, the first color...
Read more >
CSS Border | Border Width | Border Color - W3docs
The border-color property is used to set the color of a border. The color can be set by: ... You cannot use the...
Read more >
CSS - border-color - Tutorialspoint
CSS - border-color, The border-color property allows you to change the color of the border surrounding an element. You can individually change the...
Read more >
What Does HTML Bordercolor Attribute Does To Your Tables ...
Visual web browsers such as Netscape and MSIE render table borders with a three-dimensional appearance. They do this by making the top and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found