johannilsson / android-pulltorefresh

DEPRECATED This project aims to provide a reusable pull to refresh widget for Android.
2.47k stars 1.03k forks source link

Fix the rebound when swipe down slowly #68

Open cashow opened 11 years ago

cashow commented 11 years ago

When refresh state changes from PULL_TO_REFRESH to RELEASE_TO_REFRESH, listview will rebound, so I changed the calculation of paddingTop. What's more, after mRefreshViewImage becomes visible, mRefreshViewHeight will change, set the default visibility of mRefreshViewImage to visible will fix that bug.