UI 适配

This commit is contained in:
zhangyuanzhen
2020-03-13 17:11:49 +08:00
parent acc93a10e0
commit f50325f78c
32 changed files with 200 additions and 50 deletions

View File

@@ -1946,14 +1946,14 @@ public class OrientedViewPager extends ViewGroup {
Log.v(TAG, "Moved x to " + x + "," + y + " diff=" + xDiff + "," + yDiff);
}
if (dx != 0 && !isGutterDrag(mLastMotionX, dx) &&
canScroll(this, false, (int) dx, (int) x, (int) y)) {
// Nested view has scrollable area under this point. Let it be handled there.
mLastMotionX = x;
mLastMotionY = y;
mIsUnableToDrag = true;
return false;
}
//if (dx != 0 && !isGutterDrag(mLastMotionX, dx) &&
// canScroll(this, false, (int) dx, (int) x, (int) y)) {
// // Nested view has scrollable area under this point. Let it be handled there.
// mLastMotionX = x;
// mLastMotionY = y;
// mIsUnableToDrag = true;
// return false;
//}
if (xDiff > mTouchSlop && xDiff * 0.5f > yDiff) {
if (DEBUG) Log.v(TAG, "Starting drag!");
mIsBeingDragged = true;