Create View in background thread #9644
Replies: 7 comments
-
@georgemark0v you cant create view in a background thread. However what you are seeing is a real issue with N. View creation is far too slow. I have been investigating that for quite some time.
If you need a lot of span and labels I suggest using @nativescript-community/canvaslabel. I always do that now. |
Beta Was this translation helpful? Give feedback.
-
A couple things |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply. Canvas/CanvasLabel supports self sizing? |
Beta Was this translation helpful? Give feedback.
-
@georgemark0v not yet know. You have dynamic size cells? |
Beta Was this translation helpful? Give feedback.
-
Not in the chat list. But messages of course have cells of different sizes depending on the size of the text. |
Beta Was this translation helpful? Give feedback.
-
Yes the issue is mostly on android. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
It's possible to create views not in UI thread?
Im have chat messages list where im use recyclerview. When I scroll to the start of the story, the app freezes on every view creation. I want the views to be created on a separate thread and not slow down scroll.
Video: https://yadi.sk/i/nIPJtfCw_tRvqA
Beta Was this translation helpful? Give feedback.
All reactions