Last Updated: February 25, 2016
·
1.759K
· adnaan

Android:Sliding Menu & SurfaceView

You know those sliding menu implementations like Facebook, Evernote. Well if you happen to be developing an app which has sliding menu with a SurfaceView as a view, don't forget to put:

setZOrderOnTop(true);

in init of SurfaceView

If you do, the slide animation would be jittery. I did, and spent a few days head hanging on interpolators and transformers.

1 Response
Add your response

This is a fantastic tip! I'm not sure how often i'll ever put a surface view inside a sliding menu, but this saved me hours of debugging.

over 1 year ago ·