I am writing an Android application using GridView to load a list of ImageView items through an Adapter . Everything works fine, except that the first item loaded into the GridView had a null value for its mAttachInfo variable.
I think this may be because the first element is either selected or focused, which leads to the fact that mAttachInfo set to null , other elements have the correct mAttachInfo .
jason source share