jfeinstein10 / SlidingMenu

An Android library that allows you to easily create applications with slide-in menus. You may use it in your Android apps provided that you cite this project and include the license in your app. Thanks!
Apache License 2.0
11.07k stars 5.04k forks source link

Put banner above sliding menu? #617

Open danielkramer opened 10 years ago

danielkramer commented 10 years ago

For my free app I'd like a banner view to animate up over the bottom of the sliding menu at various times in my app. I can't figure out a way to layer a view on top without it following the sliding animation. I tried to embed the sliding menu in a fragment so I could layer banner fragment ontop, but haven't been able to figure out the secret sauce to get that working. Any pointers?

thanks

daniel

mjkohoh commented 10 years ago

SlidingMenu change the default layout hierarchy.So it's hard for you to realize this feature.If you want to do this with SlidingMenu,you should modify this library.


发件人: Daniel Kramer 发送时间: 2014/3/18 12:48 收件人: jfeinstein10/SlidingMenu 主题: [SlidingMenu] Put banner above sliding menu? (#617)

For my free app I'd like a banner view to animate up over the bottom of the sliding menu at various times in my app. I can't figure out a way to layer a view on top without it following the sliding animation. I tried to embed the sliding menu in a fragment so I could layer banner fragment ontop, but haven't been able to figure out the secret sauce to get that working. Any pointers?

thanks

daniel


Reply to this email directly or view it on GitHub: https://github.com/jfeinstein10/SlidingMenu/issues/617

danielkramer commented 10 years ago

Actually I was able to do this without changing anything in sliding menu. Simply doing

getSlidingMenu().addView(mBannerAdView);

Puts my adBanner ontop of the sliding menu.

mosolu commented 10 years ago

@danielkramer did you fix it? can you share the solution,i meet the same problem with banner layout in the slidemenu. Thank you very much.