Coder Social home page Coder Social logo

Comments (4)

bradmartin avatar bradmartin commented on July 20, 2024

if the icon isn't showing, then are you sure you have the correct asset bundled in your native app build and named correctly?
As for the layout, use a grid and use the row/col combination that is mentioned on the README for positioning the FAB on a listview. Similar approach just different components.

from nativescript-floatingactionbutton.

madsongr avatar madsongr commented on July 20, 2024

@bradmartin Ok, I made the layout works inside the grid but the icon is not showing yet. The name is correct and it's inside the drawable-hdpi like the others images.

I tried changing icon="" to src="" but it didn't work

Another question:
is it possible to open more fabs clicking on that "add" fab? I want to display two options when the user clicks on add: a button to record audio and another one to add image.

I can do that using Ionic but I want to work with NS.

from nativescript-floatingactionbutton.

bradmartin avatar bradmartin commented on July 20, 2024

from nativescript-floatingactionbutton.

madsongr avatar madsongr commented on July 20, 2024

Ok, it's working with both res://icon and my icon too. I removed the background-color from the css file and my icon has the same color so I could see it. I don know what's happening because ns icon and my icon are getting too small and background-color is overlaying my icon.

screenshot_20171203-172213

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.