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.
Written by Adnaan Badr
Related protips
1 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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Android
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#