The x1 is down
X2 for up
The value of x is always unable to get right, no matter how to dial, the x1 is greater than the x2
` ` `
I/System. Out: 313.0=len (x2 - x1), [x1=545.0, x2=232.0, y1=634.0, y2=523.0]
I/System. Out: 400.0=len (x2 - x1), [x1=545.0, x2=145.0, y1=634.0, y2=469.0]
I/System. Out: 88.0=len (x2 - x1), [x1=449.0, x2=361.0, y1=525.0, y2=540.0]
I/System. Out: 226.0=len (x2 - x1), [x1=449.0, x2=223.0, y1=525.0, y2=459.0]
` ` `
If there is no rolling NestedScrollView (namely content rarely, not up to the conditions need to scroll), onTouchListener normal value,
Why is this?
CodePudding user response:
Problem has been solved, originally I ahead to other XML element and a onLongClickListener (//and then return true value)this is ok!!!!! Between the different elements may also affect,,, is a deep pit,,,