Java Code Examples for com.google.android.material.appbar.AppBarLayout#OnOffsetChangedListener

The following examples show how to use com.google.android.material.appbar.AppBarLayout#OnOffsetChangedListener . 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: LibraryFragment.java    From Music-Player with GNU General Public License v3.0 4 votes vote down vote up
public void addOnAppBarOffsetChangedListener(AppBarLayout.OnOffsetChangedListener onOffsetChangedListener) {
    appbar.addOnOffsetChangedListener(onOffsetChangedListener);
}
 
Example 2
Source File: LibraryFragment.java    From Music-Player with GNU General Public License v3.0 4 votes vote down vote up
public void removeOnAppBarOffsetChangedListener(AppBarLayout.OnOffsetChangedListener onOffsetChangedListener) {
    appbar.removeOnOffsetChangedListener(onOffsetChangedListener);
}
 
Example 3
Source File: LibraryFragment.java    From VinylMusicPlayer with GNU General Public License v3.0 4 votes vote down vote up
public void addOnAppBarOffsetChangedListener(AppBarLayout.OnOffsetChangedListener onOffsetChangedListener) {
    appbar.addOnOffsetChangedListener(onOffsetChangedListener);
}
 
Example 4
Source File: LibraryFragment.java    From VinylMusicPlayer with GNU General Public License v3.0 4 votes vote down vote up
public void removeOnAppBarOffsetChangedListener(AppBarLayout.OnOffsetChangedListener onOffsetChangedListener) {
    appbar.removeOnOffsetChangedListener(onOffsetChangedListener);
}
 
Example 5
Source File: LibraryFragment.java    From Phonograph with GNU General Public License v3.0 4 votes vote down vote up
public void addOnAppBarOffsetChangedListener(AppBarLayout.OnOffsetChangedListener onOffsetChangedListener) {
    appbar.addOnOffsetChangedListener(onOffsetChangedListener);
}
 
Example 6
Source File: LibraryFragment.java    From Phonograph with GNU General Public License v3.0 4 votes vote down vote up
public void removeOnAppBarOffsetChangedListener(AppBarLayout.OnOffsetChangedListener onOffsetChangedListener) {
    appbar.removeOnOffsetChangedListener(onOffsetChangedListener);
}