O'Reilly logo

PhoneGap 3.x Mobile Application Development HOTSHOT by Kerri Shotts

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Covering the view stack

So far, we've been ignoring the concept of a view stack, even though we have already dealt with it implicitly. Remember back in Project 3, Mobile Application Design, when we assigned z-index to each view? This was to ensure they always stacked in the proper order when on screen.

Thankfully, most UI frameworks eliminate this tedium, and YASMF is no different. It provides a simple solution to having hardcoded z-index for our views.

Getting on with it

The view stack (or view hierarchy) is simply a representation of the visible and hidden views active in the DOM. So far, we've only had to deal with one view being on top of another, but in complex apps, you can imagine that it would be possible to have several views on the stack. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required