Comments (1)
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 :/
from textdrawable.
Related Issues (20)
- how can we make 2 lines in the TextDrawable ? HOT 1
- Unable to fetch artifact from maven repository HOT 1
- Does lib support dynamic changing on "text" on the drawable.
- Please update project SDK 25 HOT 1
- Text + textDrawable Image
- how to put letter image from adapter class for listview or gridview
- Wont work with Glide... HOT 1
- Cannot resolve .builder()
- Color Generator Config
- Custom Color not assuming HOT 1
- Random color doesn't work HOT 1
- How to use it as BottomNavigationView item?? HOT 2
- does not work with CircleImageView HOT 2
- Doesn't work with LayerDrawable
- tt barecodr
- Can you please publish your library to a Maven Central ? I can offer you some help for this HOT 6
- ارسل التفاصيل
- .c
- ImageWebView
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from textdrawable.