一、ListView 和GridView,判断方法相同。
public boolean isGetTop() {
if (absListView.getCount() == 0) {
return true;
} else if (absListView.getFirstVisiblePosition() == 0 && absListView.getChildAt(0).getTop() >= absListView.getPaddingTop()) {
return true;
}
return false;
}
public boolean isGetBottom() {
int firstVisiblePosition = absListView.getFirstVisiblePosition();
int lastVisiblePosition = absListView.getLastVisiblePosition();
int count = absListView.getCount();
if (count == 0) {