Show us your blocks if u use AI dynamic components extension by yusufcihan. As i understand you are trying to tell us that creating your components without loading images freeze your app for 7-8 seconds?
Also I think you don’t understand the difference between dynamic and asynchronous.
trying load my app with images is taking 8-9 seconds to load. There are around 200+ cards and images.
Okay, so why don’t you explain me?
dynamic component extension has an option of UI and main. UI will load the components one by one whereas main shall load them all at the same time.
Correct me if I am wrong.
But does your app freeze? You are so unprecize.
Yup, as I said it takes 7-8 seconds to load the screen.
“Load” is not enough. App can work normal without freeze while loading your images in background.
Just create your layout first without loading the images. When your whole layout is built start the function to load images async.
It’s hard to help you as we can’t see your blocks logic. We don’t know when u try to load images ect.
By load I mean screen is blank (white) for 7-8 seconds.
I will share them.
I have a procedure. Where I create card, then add images to card, then use and asyn extension to load images from url. Call this procedure on screen initialise.
Layout arrangement is gridview in viewpager. 6 different tabs in viewpager and total of 220 cards/images/vertical-arrangement/label ( all created dynamically using dynamic component extension.
Show your logic and we can talk further. Async task extension is tricky and hard to use to be honest, as component created on UI thread sometimes won’t respond to changes induced by other thread different than UI thread.