Titanium Community Questions & Answer Archive

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

Idea about change from one view to another view with animation?

Does anyone know how to change between two views with animation?

Like I have one view open and when someone click on button in to the navbar, it flip the opened view and change to another view or something like that.

Any examples??

— asked August 13th 2010 by Chirag Patel
  • animation
  • change
  • flip
  • flipview
  • iphone
  • view
0 Comments

2 Answers

  • Accepted Answer

    create Views such as View1, view2,etc. and a master view(masterVu)…

    add all the views ie. view1,view2 to the masterVu.

    then define functions such as this

    function showView1() {
    masterVu.animate({view:view1,transition:Ti.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT});

    View1.visible = True;

    View2.visible = false;
    }

    Trigger this function when you need the View1 to POPUP…

    (do mark as the answer if this solves your problem)

    — answered August 13th 2010 by Satta Ravi
    permalink
    3 Comments
    • Thanks Ravi

      — commented August 16th 2010 by Chirag Patel
    • excellent solution. In my case I was able to use my window as the master view. +1

      — commented June 1st 2013 by Sam Matrouh
    • @Sam; why are you commenting on a 3 year old question and up voting the answer.

      If you are looking to help other look for much more recent questions that have not already been answered and that answer already accepted.

      — commented June 1st 2013 by Malcolm Hollingsworth
  • The other simple way is put all your views inside a Scrollableview…..

    check out the Link

    — answered August 13th 2010 by Satta Ravi
    permalink
    0 Comments
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.