且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在顶部添加新项目时,在ListView中保持滚动位置

更新时间:2023-11-28 17:59:10

实际上,您不应将新的聊天项目添加到列表中.并且您必须缓存它们,然后在列表到达顶部或底部之后将缓存注入列表中.我希望这种解决方案对您有用.

In fact, you should not add new chat items to the list. And you have to cache them and then inject the cache into the list after the list has reached the top or bottom. I hope this solution works for you.