triniwiz / nativescript-tooltip

Other
11 stars 8 forks source link

The tooltip is not visible #3

Open mendokar opened 7 years ago

mendokar commented 7 years ago

I import the view

import {View} from "ui/core/view";

modify the styles.xml

Create a function that allows me to visualize the data

public view(){ const tip = new ToolTip(View, { textColor: "white", backgroundColor: "blue", text: "prueba", duration: 10000, style: "CustomToolTipLayoutStyle" });

    tip.show(); 

}

you get this error when you run

JS: ERROR Error: java.lang.NullPointerException: Attempt to read from field 'int android.graphics.Point.x' on a null object reference JS: android.graphics.Point.(Point.java:38) JS: it.sephiroth.android.library.tooltip.Tooltip$Builder.anchor(Tooltip.java :1617)

triniwiz commented 7 years ago

Stay tuned update coming soon 😄

mendokar commented 7 years ago

Thank you friend, I will be pending since I need to implement it in my project, I appreciate that it is not a long time ... really thank you very much.

wiedikerli commented 7 years ago

@triniwiz any update on this issue? I would love to use it in my current project...

wiedikerli commented 7 years ago

@mendokar if you're still interested i made a fork and fixed the plugin for {n} v3.