The stock email app does something similar, it's available in the source
repository under packages/apps/Email.

It uses a special layout view with an animation that drives layout changes
via requestLayout / onLayout.

Other than that, a particularly smooth way to slide a fragment on or off
the screen is to use setTranslationX on its container view (likely driven
by a ViewAnimator or PropertyValuesHolder / ObjectAnimator).

-- K

2012/7/3 William Swartzendruber <[email protected]>

> Gmail on tablets has a system where top level fragments can be pushed off
> the screen to make room for a new one.  Or the fragment on the very left
> can hide itself when switching to portrait mode, but reappear when going
> back to landscape mode.
>
> How is this done?  What classes are used to accomplish it?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to