Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

View or Window

I'm trying to make something like in the Android interface that if you click the picture of the contact it will appear like a bubble with some buttons. I already saw the sample of creating like a ToolTip with a View.

I haven't been able to position the new "view" below the row that was clicked. The e.row.top value is null.

Is there any way to calculate that?

It is better to add the view and remove it or use a modal window?

Thanks…

https://gist.github.com/666334

here is the code

the tooltip is not in the row that is clicked

— asked November 7th 2010 by Miguel Gandia
  • android
  • click
  • position
  • row
  • table
2 Comments
  • Specifically which "sample of creating like a ToolTip with a View" are you referring to?

    Paste the code you are having trouble with (Github gist), and someone will help you :)

    — commented November 7th 2010 by Paul Dowsett
  • This is the sample that I used
    http://cssgallery.info/create-a-nifty-tooltip-in-titanium/

    — commented November 7th 2010 by Miguel Gandia

1 Answer

  • Miguel

    What about setting your tooltip view's left and top properties to the e.x and e.y property values of the click event before you show it?

    Then also have a listener that detects the table scroll event to hide it.

    Cheers

    Hal

    — answered November 7th 2010 by Paul Dowsett
    permalink
    3 Comments
    • It sounds like a good idea. But those values are undefined. This is on the click event of the table view?

      — commented November 7th 2010 by Miguel Gandia
    • Apparently that is not possible right now with android. Very Sad

      — commented November 7th 2010 by Miguel Gandia
    • Miguel

      Where did you find that information? If you found a lighthouse ticket, paste a link to it here, please. :)

      — commented November 8th 2010 by Paul Dowsett
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.