SlidingMenu Library with ActionBarSherlock

The document document from SlidingMenu says:

Enter the SlidingActivities that you plan to use, forcing them to extend Sherlock__Activity instead of __Activity.

The setting should be fine, I followed the guide, but if I try to expand my Activity , for example: SlidingSherlockFragmentActivity or SherlockSlidingFragmentActivity does not work.

If I stretch an Activity using SherlockFragmentActivity , I cannot get SlidingMenu with getSlidingMenu() or call setBehindContentView .

+6
source share
2 answers

Nevermind, go to the SlidingMenu library and increase the Activity by SherlockFragmentActivity instead of FragmentActivity

+7
source

Go to the actions of the SlidingMenu library and continue all the actions with the SherlockActivities command, after going to your application and expand all the actions to the corresponding SlidingActivity.

Example: SlidingMenu:

 SlidingActivity extends SherlockActivity SlidingMapActivity extends SherlockMapActivity 

Example: MyClass

 MyClass extends SlidingActivity MyClass extends SlidingMapActivity 
+2
source

All Articles