Java Code Examples for android.widget.OverScroller#startScroll()

The following examples show how to use android.widget.OverScroller#startScroll() . 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: RightHorizontalSwiper.java    From OmegaRecyclerView with MIT License 4 votes vote down vote up
@Override
public void autoOpenMenu(OverScroller scroller, int scrollX, int duration) {
    scroller.startScroll(Math.abs(scrollX), 0, getMenuView().getWidth()-Math.abs(scrollX), 0, duration);
}
 
Example 2
Source File: LeftHorizontal.java    From SwipeRecyclerView with Apache License 2.0 4 votes vote down vote up
@Override
public void autoCloseMenu(OverScroller scroller, int scrollX, int duration) {
    scroller.startScroll(-Math.abs(scrollX), 0, Math.abs(scrollX), 0, duration);
}
 
Example 3
Source File: LeftHorizontal.java    From SwipeRecyclerView with Apache License 2.0 4 votes vote down vote up
@Override
public void autoOpenMenu(OverScroller scroller, int scrollX, int duration) {
    scroller.startScroll(Math.abs(scrollX), 0, getMenuView().getWidth() - Math.abs(scrollX), 0, duration);
}
 
Example 4
Source File: RightHorizontal.java    From SwipeRecyclerView with Apache License 2.0 4 votes vote down vote up
@Override
public void autoCloseMenu(OverScroller scroller, int scrollX, int duration) {
    scroller.startScroll(-Math.abs(scrollX), 0, Math.abs(scrollX), 0, duration);
}
 
Example 5
Source File: RightHorizontal.java    From SwipeRecyclerView with Apache License 2.0 4 votes vote down vote up
@Override
public void autoOpenMenu(OverScroller scroller, int scrollX, int duration) {
    scroller.startScroll(Math.abs(scrollX), 0, getMenuView().getWidth() - Math.abs(scrollX), 0, duration);
}
 
Example 6
Source File: SwipeRightHorizontal.java    From SwipeRecyclerView-master with Apache License 2.0 4 votes vote down vote up
@Override
public void autoCloseMenu(OverScroller scroller, int scrollX, int duration) {
    scroller.startScroll(-Math.abs(scrollX), 0, Math.abs(scrollX), 0, duration);
}
 
Example 7
Source File: SwipeRightHorizontal.java    From SwipeRecyclerView-master with Apache License 2.0 4 votes vote down vote up
@Override
public void autoOpenMenu(OverScroller scroller, int scrollX, int duration) {
    scroller.startScroll(Math.abs(scrollX), 0, getMenuView().getWidth() - Math.abs(scrollX), 0, duration);
}
 
Example 8
Source File: SwipeLeftHorizontal.java    From SwipeRecyclerView-master with Apache License 2.0 4 votes vote down vote up
@Override
public void autoCloseMenu(OverScroller scroller, int scrollX, int duration) {
    scroller.startScroll(-Math.abs(scrollX), 0, Math.abs(scrollX), 0, duration);
}
 
Example 9
Source File: LeftHorizontal.java    From SwipeRecyclerView with Apache License 2.0 4 votes vote down vote up
@Override
public void autoCloseMenu(OverScroller scroller, int scrollX, int duration) {
    scroller.startScroll(-Math.abs(scrollX), 0, Math.abs(scrollX), 0, duration);
}
 
Example 10
Source File: RightHorizontalSwiper.java    From OmegaRecyclerView with MIT License 4 votes vote down vote up
@Override
public void autoCloseMenu(OverScroller scroller, int scrollX, int duration) {
    scroller.startScroll(-Math.abs(scrollX), 0, Math.abs(scrollX), 0, duration);
}
 
Example 11
Source File: SwipeLeftHorizontal.java    From NewFastFrame with Apache License 2.0 4 votes vote down vote up
@Override
public void autoOpenMenu(OverScroller scroller, int scrollX, int duration) {
    scroller.startScroll(Math.abs(scrollX), 0, getMenuView().getWidth() - Math.abs(scrollX), 0, duration);
}
 
Example 12
Source File: RightHorizontal.java    From SwipeRecyclerView with Apache License 2.0 4 votes vote down vote up
@Override
public void autoOpenMenu(OverScroller scroller, int scrollX, int duration) {
    scroller.startScroll(Math.abs(scrollX), 0, getMenuView().getWidth() - Math.abs(scrollX), 0, duration);
}
 
Example 13
Source File: LeftHorizontalSwiper.java    From OmegaRecyclerView with MIT License 4 votes vote down vote up
@Override
public void autoOpenMenu(OverScroller scroller, int scrollX, int duration) {
    scroller.startScroll(Math.abs(scrollX), 0, getMenuView().getWidth()-Math.abs(scrollX), 0, duration);
}
 
Example 14
Source File: SwipeRightHorizontal.java    From TestChat with Apache License 2.0 4 votes vote down vote up
@Override
public void autoCloseMenu(OverScroller scroller, int scrollX, int duration) {
    scroller.startScroll(-Math.abs(scrollX), 0, Math.abs(scrollX), 0, duration);
}
 
Example 15
Source File: RightHorizontal.java    From SwipeRecyclerView with Apache License 2.0 4 votes vote down vote up
@Override
public void autoCloseMenu(OverScroller scroller, int scrollX, int duration) {
    scroller.startScroll(-Math.abs(scrollX), 0, Math.abs(scrollX), 0, duration);
}
 
Example 16
Source File: SwipeLeftHorizontal.java    From TestChat with Apache License 2.0 4 votes vote down vote up
@Override
public void autoCloseMenu(OverScroller scroller, int scrollX, int duration) {
    scroller.startScroll(-Math.abs(scrollX), 0, Math.abs(scrollX), 0, duration);
}
 
Example 17
Source File: SwipeLeftHorizontal.java    From TestChat with Apache License 2.0 4 votes vote down vote up
@Override
public void autoOpenMenu(OverScroller scroller, int scrollX, int duration) {
    scroller.startScroll(Math.abs(scrollX), 0, getMenuView().getWidth() - Math.abs(scrollX), 0, duration);
}
 
Example 18
Source File: SwipeRightHorizontal.java    From NewFastFrame with Apache License 2.0 4 votes vote down vote up
@Override
public void autoCloseMenu(OverScroller scroller, int scrollX, int duration) {
    scroller.startScroll(-Math.abs(scrollX), 0, Math.abs(scrollX), 0, duration);
}
 
Example 19
Source File: SwipeRightHorizontal.java    From NewFastFrame with Apache License 2.0 4 votes vote down vote up
@Override
public void autoOpenMenu(OverScroller scroller, int scrollX, int duration) {
    scroller.startScroll(Math.abs(scrollX), 0, getMenuView().getWidth() - Math.abs(scrollX), 0, duration);
}
 
Example 20
Source File: LeftHorizontal.java    From SwipeRecyclerView with Apache License 2.0 4 votes vote down vote up
@Override
public void autoOpenMenu(OverScroller scroller, int scrollX, int duration) {
    scroller.startScroll(Math.abs(scrollX), 0, getMenuView().getWidth() - Math.abs(scrollX), 0, duration);
}