Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Scroller 设置 firstSpace 后每次调用 virtualView.setVData() 前置间距都会增加 #60

Open
DemoJameson opened this issue Apr 18, 2018 · 0 comments

Comments

@DemoJameson
Copy link
Contributor

DemoJameson commented Apr 18, 2018

我看了下 Scroller 的源代码,应该是这里的问题,需要先调用 mNative.removeItemDecoration()。

    if (mLineSpace != 0 || mFirstSpace != 0 || mLastSpace != 0) {
        mNative.addItemDecoration(new SpaceItemDecoration(this, mLineSpace, mFirstSpace, mLastSpace));
    }
@DemoJameson DemoJameson changed the title Scroller 设置 firstSpace 后每次调用 virtualView.setVData 前置间距都会增加 Scroller 设置 firstSpace 后每次调用 virtualView.setVData() 前置间距都会增加 Apr 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant