I am creating dynamic views and adding it to the parent layout in a loop. So, when the data is much bigger, then it hangs the android system while setting the view.
How to stop this ? Or any better way to populate large dynamic data which does not hangs up the device.
Basic operation :
I get a list of data with some format information
Run a loop and create views dynamically based on the switch case for different type of data (text, image, link, etc.) and add that view to the parent layout.