ohos扩展包——ComponentPositionHelper、TouchEventCompact
控件整体上下或左右平移帮助类ComponentPositionHelper替换安卓中View.offsetLeftAndRight(int)与View.offsetTopAndBottom(int)使用ComponentPositionHelper.offsetTopAndBottom(view,offsetTop);ComponentPositionHelper.offsetLeftAndRight(view,offsetLeft);ComponentPositionHelper.getCurrentOffsetTop(view,offsetTop);ComponentPositionHelper.getCurrentOffsetLeft(view,offsetLeft);原理由于鸿蒙在滚动过程中为单个控...