@Override
public int getViewHorizontalDragRange(View child) {
return mFirstView == child ? child.getWidth() : 0;
}
@Override
public int getViewVerticalDragRange(View child) {
return mFirstView == child ? child.getHeight() : 0;
}
@Override
public int getViewHorizontalDragRange(View child) {
return mFirstView == child ? child.getWidth() : 0;
}
@Override
public int getViewVerticalDragRange(View child) {
return mFirstView == child ? child.getHeight() : 0;
}
转载于:https://my.oschina.net/sunlimiter/blog/740625