Today downloaded Slidingmenu to study, found that the inside of the example can not be used, always hint baseactivity inside can't find Getsupportactionbar () method, To GitHub, the reason for this is that the problem is: slidingfragmentactivity don ' t use sherlockactivity solution is to let slidingfragmentactivity Inherit the sherlockfragmentactivity, so I intend to integrate the actionbarsherlock into the slidingmenu from the new, When using the direct reference Slidingmenu will automatically include the Actionbarsherlock. Step: ActionBarSherlock1, New Actionbarsherlocklibrary project, set as Library Project 2, Copy all files under the downloaded Library source code to the Actionbarsherlocklibrary project, folders and files will prompt you to merge and replace, merge all folders, replace the code files, This actionbarsherlocklibrary is good slidingmenu1, the new Slidingmenulibrary project, also set as the Library project 2, Also will download all files under the Slidingmenu library under Copy to Slidingmenulibrary Project, folders and files will prompt you to merge and replace, all folders merged, code file replacement. 3, enter Properties-->java build Path-->add The old library references are deleted, add the previous resume Actionbarsherlocklibrary can click to complete. 4, enter slidingmenulibrary in the SRC under Find Slidingfragmentactivity.java, modify publicclass slidingfragmentactivity extends fragmentactivity implements Slidingactivitybase modified to publicclass Slidingfragmentactivity extends sherlockfragmentactivity&nbsP;implements slidingactivitybase
Actionbarsherlock slidingmenu Consolidation, resolving Slidingmenu example Getsupportactionbar () method is not a problem