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.08k stars 5.04k forks source link

Load intent behide #78

Closed Blucreation closed 12 years ago

Blucreation commented 12 years ago

Is it possible to load an intent behind. at the moment if i call an intent it will come in front and you lose the slideout menu.

Situation:

i have a webview and the guts of my app is a mobile website. i have a preference activity and an xml feed activity which are in native code.

How do i replace the webview with the preference/xml activities as it just load them over the top?

hwrdprkns commented 12 years ago

You should probably be using a fragment for this. This way you won't really be changing anything except the fragment the web view lives in -- and the SlidingMenu should remain untouched.

jfeinstein10 commented 12 years ago

^ Seconded!

Blucreation commented 12 years ago

Will look into that cheers.

Another quick one how do i show.hide menu? is there a show() hide() classes? i want it to hide once a listivew item has been clicked and to have it open when app first loads

bondjpf commented 12 years ago

You can use toggle()

Blucreation commented 12 years ago

getSlidingMenu().toggle(); give an error: undefined for the type SlideMenu

jfeinstein10 commented 12 years ago

That's because its a method of the activity, not the slidingmenu

Blucreation commented 12 years ago

ook... so how do i call it then as just calling toggle() does nothing in onCreate

hwrdprkns commented 12 years ago

You can't call it in onCreate. You have to do it sometime later (onResume maybe?). OnPostCreate is necessary for everything to be registered.