Closed royale1223 closed 8 years ago
Hi,
Please refer to the sample app, it handles such a case.
Regards,
Alright
On Aug 9, 2016 2:39 AM, "Ari Cheshin" notifications@github.com wrote:
Hi,
Please refer to the sample app, it handles such a case.
Regards,
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/arimorty/floatingsearchview/issues/111#issuecomment-238378230, or mute the thread https://github.com/notifications/unsubscribe-auth/ABMO3gezBRFtGZET4rNzYlW_5eRp70guks5qd5r_gaJpZM4JfWc- .
For the sake of documentation here's the solution:
mDrawerLayout.addDrawerListener(new DrawerLayout.DrawerListener() {
@Override
public void onDrawerSlide(View drawerView, float slideOffset) {
}
@Override
public void onDrawerOpened(View drawerView) {
//since the drawer might have opened as a results of
//a click on the left menu, we need to make sure
//to close it right after the drawer opens, so that
//it is closed when the drawer is closed.
mSearchView.setLeftMenuOpen(false);
}
@Override
public void onDrawerClosed(View drawerView) {
}
@Override
public void onDrawerStateChanged(int newState) {
}
});
@royale1223 , your question brought to my attention that configuring the menu button with the navigation drawer is not very straightforward, so I added a feature to milestone 2.0.3 to ease the process. Have a look at this commit.
Thanks for bringing this issue to my attention, Ari
I'm using the left menu to open a drawer. When it's clicked a home button is shown. Is there a way to disable it?