Java Code Examples for android.widget.AbsListView#SCROLL_AXIS_NONE

The following examples show how to use android.widget.AbsListView#SCROLL_AXIS_NONE . 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: AutoHideButtonFloat.java    From MoeGallery with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void onScrollStateChanged(AbsListView absListView, int scrollState) {
    switch (scrollState) {
        case AbsListView.SCROLL_AXIS_NONE:
            floatHiding = false;
            floatShowing = false;
            ViewPropertyAnimator.animate(view).translationY(0).setDuration(300);
            break;
    }
    if (onScrollListener != null)
        onScrollListener.onScrollStateChanged(absListView, scrollState);
}
 
Example 2
Source File: AutoHideButtonFloat.java    From meiShi with Apache License 2.0 5 votes vote down vote up
@Override
public void onScrollStateChanged(AbsListView absListView, int scrollState) {
    switch (scrollState) {
        case AbsListView.SCROLL_AXIS_NONE:
            floatHiding = false;
            floatShowing = false;
            ViewPropertyAnimator.animate(view).translationY(0).setDuration(300);
            break;
    }
    if (onScrollListener != null)
        onScrollListener.onScrollStateChanged(absListView, scrollState);
}
 
Example 3
Source File: AutoHideButtonFloat.java    From MaterialDesignLibrary with Apache License 2.0 5 votes vote down vote up
@Override
public void onScrollStateChanged(AbsListView absListView, int scrollState) {
    switch (scrollState) {
        case AbsListView.SCROLL_AXIS_NONE:
            floatHiding = false;
            floatShowing = false;
            ViewPropertyAnimator.animate(view).translationY(0).setDuration(300);
            break;
    }
    if (onScrollListener != null)
        onScrollListener.onScrollStateChanged(absListView, scrollState);
}