Skip to content

咨询一下,SmoothHorizontalScrollView 的原理 #10

@aheadlcx

Description

@aheadlcx

你好,想请教一下。
我看 SmoothHorizontalScrollView ,重写了方法 computeScrollDeltaToGetChildRectOnScreen ,基本就是添加了 fadingEdge ,这个意思,是不是可以理解为,因为 View 放大了,但是因为 这个方法返回的 rect ,并没有算这个放大的部分距离,因此需要自己添加 fadingEdge 上去。

如果是的话,那么这个适配就需要根据放大多少来做适配了吧。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions