Android: SlidingMenu and ActionBarActivity

I use the com.jeremyfeinstein.slidingmenu.lib.SlidingMenu library to create sliding menus, and I use the android.support.v7.app.ActionBarActivity library for the action bar. In my activity, I extend ActionBarActivity.

I can get a sliding menu by clicking on the "Home" button in the upper left corner. How to make the whole action screen also move when you click the "Home" button?

+4
source share
2 answers

Please check out the SlidingMenu section: https://github.com/jfeinstein10/SlidingMenu

: SlidingMenu, (new SlidingMenu(Context context)), SlidingMenu.attachToActivity(Activity activity, SlidingMenu.SLIDING_WINDOW | SlidingMenu.SLIDING_CONTENT). SLIDING_WINDOW Title/ActionBar SlidingMenu, SLIDING_CONTENT - . AttachExample Activity.

+1

, SlidingFragmentActivity

<resources>
<style name="AppTheme"  parent="ThemeOverlay.AppCompat.Dark.ActionBar">
</style>

0

Source: https://habr.com/ru/post/1531190/


All Articles