Java Code Examples for android.view.View#SCROLL_AXIS_VERTICAL

The following examples show how to use android.view.View#SCROLL_AXIS_VERTICAL . 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: BottomSheet.java    From android-proguards with Apache License 2.0 5 votes vote down vote up
@Override
public boolean onStartNestedScroll(View child, View target, int nestedScrollAxes) {
    if ((nestedScrollAxes & View.SCROLL_AXIS_VERTICAL) != 0) {
        isNestedScrolling = true;
        nestedScrollInitialTop = sheet.getTop();
        return true;
    }
    return false;
}
 
Example 2
Source File: BottomSheet.java    From MyBlogDemo with Apache License 2.0 5 votes vote down vote up
@Override
public boolean onStartNestedScroll(View child, View target, int nestedScrollAxes) {
    if ((nestedScrollAxes & View.SCROLL_AXIS_VERTICAL) != 0) {
        isNestedScrolling = true;
        nestedScrollInitialTop = sheet.getTop();
        return true;
    }
    return false;
}
 
Example 3
Source File: ElasticDragDismissFrameLayout.java    From weather with Apache License 2.0 4 votes vote down vote up
@Override
public boolean onStartNestedScroll(View child, View target, int nestedScrollAxes) {
  return (nestedScrollAxes & View.SCROLL_AXIS_VERTICAL) != 0;
}
 
Example 4
Source File: VerticalScrollingBehavior.java    From Hillffair17 with GNU General Public License v3.0 4 votes vote down vote up
@Override
public boolean onStartNestedScroll(CoordinatorLayout coordinatorLayout, V child, View directTargetChild, View target, int nestedScrollAxes) {
    return (nestedScrollAxes & View.SCROLL_AXIS_VERTICAL) != 0;
}
 
Example 5
Source File: VerticalScrollingBehavior.java    From JD-Test with Apache License 2.0 4 votes vote down vote up
@Override
public boolean onStartNestedScroll(CoordinatorLayout coordinatorLayout, V child, View directTargetChild, View target, int nestedScrollAxes) {
    return (nestedScrollAxes & View.SCROLL_AXIS_VERTICAL) != 0;
}
 
Example 6
Source File: VerticalScrollingBehavior.java    From Nimbus with GNU General Public License v3.0 4 votes vote down vote up
@Override
public boolean onStartNestedScroll(CoordinatorLayout coordinatorLayout, V child, View directTargetChild, View target, int nestedScrollAxes) {
    return (nestedScrollAxes & View.SCROLL_AXIS_VERTICAL) != 0;
}
 
Example 7
Source File: VerticalScrollingBehavior.java    From RetroMusicPlayer with GNU General Public License v3.0 4 votes vote down vote up
@Override
public boolean onStartNestedScroll(CoordinatorLayout coordinatorLayout, V child, View directTargetChild, View target, int nestedScrollAxes) {
    return (nestedScrollAxes & View.SCROLL_AXIS_VERTICAL) != 0;
}
 
Example 8
Source File: VerticalScrollingBehavior.java    From BottomBar with Apache License 2.0 4 votes vote down vote up
@Override
public boolean onStartNestedScroll(CoordinatorLayout coordinatorLayout, V child, View directTargetChild, View target, int nestedScrollAxes) {
    return (nestedScrollAxes & View.SCROLL_AXIS_VERTICAL) != 0;
}
 
Example 9
Source File: VerticalScrollingBehavior.java    From NavigationTabBar with Apache License 2.0 4 votes vote down vote up
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@Override
public boolean onStartNestedScroll(CoordinatorLayout coordinatorLayout, V child, View directTargetChild, View target, int nestedScrollAxes) {
    return (nestedScrollAxes & View.SCROLL_AXIS_VERTICAL) != 0;
}
 
Example 10
Source File: ElasticDragDismissFrameLayout.java    From materialup with Apache License 2.0 4 votes vote down vote up
@Override
public boolean onStartNestedScroll(View child, View target, int nestedScrollAxes) {
    return (nestedScrollAxes & View.SCROLL_AXIS_VERTICAL) != 0;
}
 
Example 11
Source File: ElasticDragDismissFrameLayout.java    From android-proguards with Apache License 2.0 4 votes vote down vote up
@Override
public boolean onStartNestedScroll(View child, View target, int nestedScrollAxes) {
    return (nestedScrollAxes & View.SCROLL_AXIS_VERTICAL) != 0;
}
 
Example 12
Source File: VerticalScrollingBehavior.java    From BottomNavigation with Apache License 2.0 4 votes vote down vote up
@Override
public boolean onStartNestedScroll(@NonNull CoordinatorLayout coordinatorLayout, @NonNull V child, @NonNull View directTargetChild, @NonNull View target, int nestedScrollAxes) {
    return (nestedScrollAxes & View.SCROLL_AXIS_VERTICAL) != 0;
}
 
Example 13
Source File: ResolverDrawerLayout.java    From android-bottomsheet with ISC License 4 votes vote down vote up
@Override
public boolean onStartNestedScroll(View child, View target, int nestedScrollAxes) {
    return (nestedScrollAxes & View.SCROLL_AXIS_VERTICAL) != 0;
}