This sample Android app demonstrates implementing a three-pane UI, like the one used in the original Gmail app, where which panes are visible depend on user actions.
This app is covered in the chapter on animators in The Busy Coder's Guide to Android Development.