Coder Social home page Coder Social logo

Comments (4)

str4d avatar str4d commented on May 21, 2024

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.

mikepenz avatar mikepenz commented on May 21, 2024

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.

str4d avatar str4d commented on May 21, 2024

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 IIcons, it would be nice to be able to set size (and maybe padding) there.

from android-iconics.

mikepenz avatar mikepenz commented on May 21, 2024

@str4d oh yes i totally missed the fact that you were talking about the view :D

from android-iconics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.