SlidingMenu icon indicating copy to clipboard operation
SlidingMenu copied to clipboard

setMenu method4

Open PabloBorda opened this issue 11 years ago • 3 comments

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

PabloBorda avatar Oct 18 '13 16:10 PabloBorda

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.

mjkohoh avatar Oct 22 '13 11:10 mjkohoh

oh,There is a setMenu(View v) method in SlidingMenu.So you can try this method.

mjkohoh avatar Oct 22 '13 11:10 mjkohoh

I use the method setMenu to set the layout of the sildingmenu,but it can't work.why?

LixamWei avatar Mar 18 '15 10:03 LixamWei