如何增加 Virtualized Flex 4 布局中的缓冲区

发布于 2024-09-27 03:06:44 字数 121 浏览 0 评论 0原文

虚拟布局很好,但我发现由于虚拟范围的“紧密”,它们常常感觉有点“笨重”。这可以通过增加范围来改进 - 向前(和向后)一两步通常足以提高列表的“响应能力”,特别是当需要加载外部资源(如图像)时。

如何实现这一点呢?

Virtualized Layouts are nice, but I find that they often feel a bit "chunky" due to the "tightness" of the virtual range. This could be improved by increasing the range - one or two steps ahead (and behind) would often be enough to improve the "responsiveness" of the list, especially when external resources (like images) need to be loaded.

How could one implement this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

神魇的王 2024-10-04 03:06:44

您的起点可能应该是 DataGroup.getVirtualElementAt(...)

这是一个复杂的主题,您可能必须定义自己的自定义布局来处理额外的虚拟化行为,以及 DataGroup 的一些元素来防止 IR以免过早被垃圾收集。

不过,您面临着相当大的风险……这不是一条容易的路线!

Your starting spot should probably be DataGroup.getVirtualElementAt(...)

It's a complicated subject, and you'd probably have to define both your own custom layout to deal with the additional virtualisation behaviour, and some elements of the DataGroup to prevent the IRs from being garbage collected too soon.

You are running a fair risk though... this isn't an easy route!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文