SlidingMenu
SlidingMenu copied to clipboard
setMenu method4
Hello Im using setMenu method to set the view i want to use via resource id. The question is, is there some way to set an Activity instead of a plain layout?
The problem is that I have all logic stuff on the Activity, and needed to pass it to the setMenu calling Activity.
Also the other problem is that both layouts contain a listview with the same ID, that must be @android:id/android:list
Any clues on that ?
Thank you
I'm not sure is a Activity can be instead.But a Fragment can do this and I think you should use a Fragment not a Activity.You can do this by add your fragment as an element in the plain layout.Then set this plain layout as a SlidingMenu by using setMenu method.
oh,There is a setMenu(View v) method in SlidingMenu.So you can try this method.
I use the method setMenu to set the layout of the sildingmenu,but it can't work.why?