Code example for AbsListView

Methods: getCount, getLastVisiblePosition

0
 
	/** 
	 * ±êʶµ½µ×²¿ÁË£¬¿ÉÒÔÉÏÀ­Ë¢Ð 
	 */ 
	public void onScrollStateChanged(AbsListView view, int arg1) {
		if (view.getLastVisiblePosition() == view.getCount() - 1) {
			isLastIndex = true;
		} 
	} 
 
	public boolean onTouchEvent(MotionEvent event) {
 
		if (mIsRefreshable) {
			switch (event.getAction()) {
			case MotionEvent.ACTION_DOWN:
				if (!mIsMarked) {
					mIsMarked = true;
					mStartY = (int) event.getY();
				} 
				break;