I am working on an application where whole data came from the API. I mostly used fragment in my application at some fragment my application did not take too much time. But at some Fragment It take to much time to display the Layout. When I debug the application I saw that data has came rapidly but it take time to display the data . And in the Log I got a message "this Application doing lot of task in its main thread". Is there any way to improve the performance of the application ?