Coder Social home page Coder Social logo

Comments (5)

bradmartin avatar bradmartin commented on July 20, 2024

Hi @nicHoch - that's a good idea. However, I don't think that will work for the native Android control. It might, but would require a lot more time to "hack" something than I have right now. If you want to try and get it working I'll accept a PR.

Here is the documentation for the native Android FloatingActionButton and since the class descends from ImageView you can see why it would be a challenge to hack something to support text.

from nativescript-floatingactionbutton.

bradmartin avatar bradmartin commented on July 20, 2024

After a little more research this is not something supported by the component and would involve a hack to make it work. As such we won't support it with this plugin. If you want text your best option is to create and image with your text and use it instead.

from nativescript-floatingactionbutton.

giovannicandido avatar giovannicandido commented on July 20, 2024

@bradmartin Any Thoughts on https://github.com/NathanWalker/nativescript-ng2-fonticon and https://github.com/NathanWalker/nativescript-fonticon ?

Could a integration work?

from nativescript-floatingactionbutton.

bradmartin avatar bradmartin commented on July 20, 2024

https://developer.android.com/reference/android/support/design/widget/FloatingActionButton.html since it descends from ImageView, the native android component doesn't support font or text out of the box. I'm sure there is some way with some serious changes made to extend the functionality but I don't have the time to implement this and I can't find a quick sample from any Android forum/discussions on implementing this. Here is a great site to get all the density icons you need for native apps: https://material.io/icons/

Hope that helps 😄

from nativescript-floatingactionbutton.

giovannicandido avatar giovannicandido commented on July 20, 2024

@bradmartin Thanks, your response clarify the question.

I solve my case using http://fa2png.io/ to convert from fontawesome to png.

from nativescript-floatingactionbutton.

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.