bk138 / LibSlideMenu

A sliding menu for Android, as found in the Google+ or Facebook apps.
Apache License 2.0
99 stars 56 forks source link

How is the correct mode to use this lib, with fragments or activities? #14

Open pedrofsn opened 11 years ago

pedrofsn commented 11 years ago

I think it's the first case, fragments, the correct mode was any MenuItem call a update of the master fragment.

If the correct mode was with activity, i think it's necessary have a master activity and all the other activities extends master activity.

How is the correct mode? How i've to call the other fragment/activity by the onSlideMenuItemClick? Is it a intent?

bk138 commented 11 years ago

Well, we used it with activities here - one abstract BlaBlaActivity that would implement the SlideMenu interface and switch between child activities that extend it. In case you wanna use the SlideMenu as a means of navigation between different screens/activities, that is...

TBH, I never used it with fragments. Though there is actually no reason not to.

HTH, C.