Comments (4)
Another reason for supporting this is that I have found that the relative sizes of the Material Design icons do not match the drawables, because they don't include any of the margins that the drawables do. So I find that even where I do want a 24dp ImageView
, I often need to set the IconicsImageDrawable
size to less than that to have a consistent sizing between icons.
from android-iconics.
There are methods to set the size of the drawable:
https://github.com/mikepenz/Android-Iconics/blob/master/library/src/main/java/com/mikepenz/iconics/IconicsDrawable.java#L343
And also to define a padding for it:
https://github.com/mikepenz/Android-Iconics/blob/master/library/src/main/java/com/mikepenz/iconics/IconicsDrawable.java#L284
from android-iconics.
Sorry, I just realized I had typos in my first comment. Fixed.
I already use IconicsDrawable.setSizeDp()
to handle this (although good to know about the padding method), but as IconicsImageView
is meant to reduce the verbosity of using IIcon
s, it would be nice to be able to set size (and maybe padding) there.
from android-iconics.
@str4d oh yes i totally missed the fact that you were talking about the view :D
from android-iconics.
Related Issues (20)
- Menu icons missing HOT 5
- Need help with migration HOT 11
- java.lang.NoClassDefFoundError: Failed resolution of: Lcom/mikepenz/iconics/typeface/IconicsInitializer; HOT 1
- Question regarding FloatingActionButtons coloring. HOT 2
- Update playstore App HOT 1
- Some icons are incorrectly rendered with `IconicsTextView` + XML HOT 13
- Update Community Material to latest version HOT 7
- Using custom fonts, icons can be displayed in Java code, but not in XML HOT 7
- Shadows with Compose HOT 1
- Disabling AppStartup silently breaks the library HOT 3
- com.mikepenz.iconics.view.IconicsImageView won't show image HOT 2
- Update Phosphor icon set to latest version HOT 1
- Custom Font library import error: Expecting member declaration HOT 2
- Update Google Material icons HOT 11
- How to make icons take on highlighted color of MaterialDrawerItem in XML? HOT 3
- Upgrade from 3.x to 5.x HOT 2
- java.lang.ClassNotFoundException: Didn't find class "com.mikepenz.iconics.typeface.IconicsInitializer" HOT 4
- Wrong icon name: faw-android
- Compose equivalent of IconicsTextView HOT 1
- Can I get source code for the iconpack creator tool? HOT 4
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-iconics.