we can simply use the onFinishLayout callback for header view & footer view.