I have just contact with Android development, recently encountered a ListView refresh item has been stuck, the progress bar has been only refreshed two times the end, Gray often do not understand, all kinds of Baidu, all kinds of information, what threads have tried all over, but and eggs. All the way up to see a piece of information that mentions the Wrap_content attribute, which is exactly what this is based on the size of the content itself, only to find out that the problem is here.
Wrap_content according to the content of the adaptive size, you need to calculate the width of the item, if the parent is also this attribute, it will take a very long time to calculate, especially when the dynamic update item, the process will continue to do, So it is recommended to use a fixed size in the ListView, it is not possible to use fill_parent, but fill_parent is only faster than wrap_content.
Android ListView Refresh lag issue