Issue

bindView inside a custom CursorAdapter is called 6-7 times for each row.

Resolution

There is no direct way to control when bindView is called. Android operating system does it as and when required it in order to properly measure and draw the layout. In this particular case the issue was caused by setting layout width to wrap_content in theĀ ListView layout. Changing this to match_parent fully resolved the issue and bindView is now called only once for each ListView row.

October 2016
Android Studio 2.2.2
Android SDK Version 23

No comments

Leave your comment

In reply to Some User
Captcha Image