android-GridViewWithHeaderAndFooter
android-GridViewWithHeaderAndFooter copied to clipboard
onAttachToWindow() called multiple times for footer views
It looks like whenever the views in the adapter change their layout onAttachToWindow() is called on the footers. This is problematic when for example using an indeterminate ProgressBar as a footer for infinite scrolling because this keeps reseting the animation on the ProgressBar and looks weird.
Getting same issue with header view. When we add header view its calling onAttachToWindow() frequently while touch on header view.