Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

13. APPLYING BEHAVIORS, TRANSITIONS, AND FILTERS > States Made More Interesting

States Made More Interesting

While you can always apply behaviors to specific component instances, you can specify particular effects when changing view states. Using transitions, you specify an effect or group of effects to play on multiple components whenever state changes occur.

Let’s return to the Search application you built using view states in the last chapter. In this application, a search field is first made large and placed in the center, and once search results are retrieved, the field shrinks and moves to the top left of the screen. Currently, this movement is immediate and jumpy, and it may take someone a moment to realize that the search fields were moved. You can add a transition that will make this movement more natural and understandable.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint