Java Code Examples for androidx.drawerlayout.widget.DrawerLayout#DrawerListener

The following examples show how to use androidx.drawerlayout.widget.DrawerLayout#DrawerListener . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ShadowSupportDrawerLayout.java    From materialistic with Apache License 2.0 4 votes vote down vote up
@Implementation
public void addDrawerListener(DrawerLayout.DrawerListener drawerListener) {
    this.drawerListeners.add(drawerListener);
    directlyOn(realDrawerLayout, DrawerLayout.class).addDrawerListener(drawerListener);
}
 
Example 2
Source File: ShadowSupportDrawerLayout.java    From materialistic with Apache License 2.0 4 votes vote down vote up
@Implementation
public void removeDrawerListener(DrawerLayout.DrawerListener drawerListener) {
    this.drawerListeners.add(drawerListener);
    directlyOn(realDrawerLayout, DrawerLayout.class).removeDrawerListener(drawerListener);
}
 
Example 3
Source File: ShadowSupportDrawerLayout.java    From materialistic with Apache License 2.0 4 votes vote down vote up
public List<DrawerLayout.DrawerListener> getDrawerListeners() {
    return drawerListeners;
}