Skip to content

关于往dataSource头部插入数据,k线位置发生变化 #40

Description

@junchenChow

public void addHeaderData(List data) {
if(data ==null || data.isEmpty())
return;
dataSource.addAll(0, data);
this.dataCount = dataSource.size();
points = dataTools.calculate(dataSource);
setResetShowPosition(false);
notifyDataSetChanged();
}
你好 上方代码是做一个左滑到底请求接口之后调用的方法,调用之后发现当前位置跳动到了数据第0个位置 而不是停留在请求接口之前的位置。修改哪个地方能做到添加数据之后不改变原有位置吗。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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