Titanium Community Questions & Answer Archive

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

Slide window / popup


I am wondering if it possible with Titanium to do this:

On the bottom of the current window will have a single tab like window/popup.

This small tab/window/popup you can slide up and down and it has a few buttons on it.

On load, it will only show the top of the tab, and when you slide it up, it shows some buttons etc. It can only slide up until the whole window is shown.

I hope I am making sense.. Will clarify more if needed

— asked September 20th 2010 by Jay J
  • android
  • iphone
  • popup
  • slide
  • window

2 Answers

  • It's possible.

    The best (and perhaps only) approach would be to use a partially-hidden view with an event listener that implements a custom 'drag' function to slide the view with the user's gesture.

    Performance might be an issue if the view is particularly complex.

    — answered September 21st 2010 by James K
  • Thanks for your reply James K.

    To further explain I have attached images of what I am trying to do with Titanium..



    Would be great if someone could give some example code ;) Thanks in advance..

    By the way, this has to work on Android and iPhone

    — answered September 21st 2010 by Jay J
    1 Comment
    • I think it will be more user friendly if you just clicked the tab to display rather than dragging it. It will then animate and slide out and display the controls.

      Any help available?

      — commented September 23rd 2010 by Jay J
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.