AutoHomeRefreshListView仿汽车之家下拉刷新 《IT蓝豹》
AutoHomeRefreshListView仿汽车之家下拉刷新 AutoHomeRefreshListView 高仿汽车之家下拉刷新 ,下拉的时候出现很不错的效果。 本项目来自:https://github.com/nugongshou110/AutoHomeRefreshListView 首先是自定义AutoHomeListView,继承ListView实现的 重要代码如下: public class AutoHomeListView extends ListView implements AbsListView.OnScrollListener{ private static final int DONE = 0; private static final int PULL_TO_REFRESH = 1; private static final int RELEASE_TO_REFRESH = 2; private static final int REFRESHING = 3; private static final int RATIO = 4; private LinearLayout headerView; private AutoHome mAutoHome; private int headerViewHeight; private float startY;