Is there any way to determine if the navigation box opens or closes? I read about the isDrawerOpen() and isDrawerVisible() methods, but they only return true if the navigation box is open or displayed accordingly.
I also read about the onDrawerSlide(View drawerView, float slideOffset) , which is called when the box is moved. slideOffset is a floating value from 0 to 1 that indicates the position of the box. But even this is caused when the drawer opens closing and .
I need to do something to do something only when opening a box, but not when closing, something tells me that I need to use the onDrawerSlide(View drawerView, float slideOffset) method onDrawerSlide(View drawerView, float slideOffset) , but I just canβt understand how to check this opens and does not close.
thanks
source share