Pages

Thursday 7 January 2016

getView called multiple times

First check this question in detail : http://stackoverflow.com/questions/11186004/yet-another-getview-called-multiple-times

 short explanation about listview.

Thumb rule : never use wrap_content for listview's height and width.

if we use height or width of listview as wrap_content then adapter's getview will call more then once for same item after notifydatasetchanged.

to overcome this situation as suggested in above link use listview's height and width as match_parent or fixed size.

No comments :

Post a Comment