Delphi XE6 FireMonkey中的TVertScrollBox非常非常慢。固定?

时间:2021-03-17 04:18:40

I am currently building a FireMonkey App for Android. I have a function that gets a number out of the database, and using that number, it generates the same amount of rectangles. These rectangles are added into a TGridLayout. Right now I have close to 60 rectangles generated, and the TVertScrollBox works unresponsive, slow and choppy. Is there any way to implement another way of scrolling into my app? Or something to fix this slow and unresponsive scrolling?

我目前正在为Android构建FireMonkey应用程序。我有一个函数从数据库中获取一个数字,并使用该数字,它生成相同数量的矩形。这些矩形被添加到TGridLayout中。现在我生成了近60个矩形,TVertScrollBox工作无响应,缓慢且不连贯。有没有办法实现滚动到我的应用程序的另一种方式?或者是什么来解决这种缓慢而无响应的滚动?

1 个解决方案

#1


Utilize TImageCacheLayout to cache your components as bitmaps. Should increase speed. The slow scrolling of a TListBox with a lot of components on Android is fixed in Delphi XE8.

利用TImageCacheLayout将组件缓存为位图。应该提高速度。在Delphi XE8中修复了在Android上使用大量组件的TListBox缓慢滚动。

#1


Utilize TImageCacheLayout to cache your components as bitmaps. Should increase speed. The slow scrolling of a TListBox with a lot of components on Android is fixed in Delphi XE8.

利用TImageCacheLayout将组件缓存为位图。应该提高速度。在Delphi XE8中修复了在Android上使用大量组件的TListBox缓慢滚动。