zirouan / NavigationDrawer-MaterialDesign

Library Navigation drawer material design
1.06k stars 272 forks source link

navigation drawer open/close listener #95

Closed sameera26 closed 8 years ago

sameera26 commented 8 years ago

How can set listener for navigation drawer open/close event? Thanks!

zirouan commented 8 years ago

Hi. You can use the following method.

.setOnPrepareOptionsMenu(onPrepare)
private OnPrepareOptionsMenuLiveo onPrepare = new OnPrepareOptionsMenuLiveo() {
    @Override
    public void onPrepareOptionsMenu(Menu menu, int position, boolean visible) {
    }
};
sameera26 commented 8 years ago

It works. Many Thanks mate :)