Comments (2)
I don't see any particular problem with getPaint()
method, you're free to send a PR. :-)
But people may not know when to call it to set specific settings, and if you want to set antialiasing or anything else to all your icons, you'd need to configure them one by one.
What about a method like that in IconDrawable
?
protected void configurePaint(Paint paint){
// Meant to be overriden
}
Then if you want different configuration you can override it and use your AntialiasIconDrawable
wherever you need it. Opinion?
I know about the
composition over inheritance
thing, but I think that the Drawable you're trying to get is a specialization of the one that exists by default.
from android-iconify.
That's better 👍
from android-iconify.
Related Issues (20)
- Expose TextPaint in IconDrawable
- Spinning drawables HOT 2
- Notification builder - setSmallIcon is it possible?
- Google Material Update? HOT 1
- Parser fails on } { sequence
- Font Awesome Not Update
- is it possible to do animate on these icon
- How to preview the effect in the development period?
- iconify about android8.0
- Couldn't working java 8. FontAwesomeIcons.values() unable to resolve static method
- Importing Iconify into Android to Use as a Dependency
- can not support com.android.support:appcompat-v7:27.1.1 HOT 2
- Cut off part of the icon - fa_taxi
- Crashed when redering incomplete bracket.
- Wrong with WeathericonsIcons.java:527
- can not support com.android.support:appcompat-v7:28.0.0 HOT 2
- Android app not available anymore
- The font awesome names aren't consistent with the standard name identifiers.
- Duplicate classes when importing this project into mine HOT 5
- Shemul
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 android-iconify.