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. |
|
A couple things |
Thanks for your reply. Canvas/CanvasLabel supports self sizing? |
|
@georgemark0v not yet know. You have dynamic size cells? |
Not in the chat list. But messages of course have cells of different sizes depending on the size of the text. |
|
Yes the issue is mostly on android. |
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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
All reactions