Code Monkey home page Code Monkey logo

Comments (7)

JoanZapata avatar JoanZapata commented on July 26, 2024 1

Available in 2.0.7, released just now.

from android-iconify.

mikepenz avatar mikepenz commented on July 26, 2024

@fadils this project uses a normal textView and just changes the typeFace of the view to render special unicode chars as icon. This does not allow any altering of the style a specific icon has.

Furthermore animating an element within a textview is pretty complicated. You can do an alpha animation like mentioned in this post: http://flavienlaurent.com/blog/2014/01/31/spans/ perhaps it's possible to implement a spin-animation too, but this is probably nothing for the near future.
(this would need a complete rewrite of this whole project)

from android-iconify.

fadils avatar fadils commented on July 26, 2024

@mikepenz I knew it was a quite a work for this feature. I was just curious for one thing. If it's gonna be available in near future, how you are going to combine the typeFace conversion, along with an animation and put it as a View attribute.

From your answer, at least I get the picture it won't be available soon. Thanks a lot, Mike.

from android-iconify.

mikepenz avatar mikepenz commented on July 26, 2024

@fadils as far as i see it would require a huge amount of trying. i haven't found anything similar yet so it could get difficult to add this feature. If you are a bit more into code you can check my try on the whole icon-font topic here: https://github.com/mikepenz/Android-Iconics

from android-iconify.

mikepenz avatar mikepenz commented on July 26, 2024

so i tried many different things now. seems to be not possible with spans. perhaps with a custom animated drawable. but got no experience with them.

from android-iconify.

fadils avatar fadils commented on July 26, 2024

I am gonna try something today. Good thing you pointed out that it seems to be not possible with spans.

from android-iconify.

JoanZapata avatar JoanZapata commented on July 26, 2024

After a few tests myself, it is possible with spans, but it needs one more thing: have access to the TextView. I'll investigate to make sure it can't cause a leak and add it to the next version if it's ready at this time.

Syntax would be {fa-something spin}.

from android-iconify.

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.