package edu.hbut.livestock.util;

import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

/**
 * »ù´¡ÊÊÅäÆ÷£¬ÊµÏÖ¸¸ÀàÖÐµÄgetItemºÍgetItemId·½·¨
 * 
 * @author Hang
 * 
 */
public abstract class MyBaseAdapter extends BaseAdapter {

	@Override
	public Object getItem(int position) {
		return position;
	}

	/**
	 * ·µ»ØµÄidÄ¬ÈÏÎªÊý¾ÝµÄÎ»ÖÃ£¬Ò»°ã¿ÉÒÔÎªÊý×é»òÕß¼¯ºÏÖÐµÄÎ»ÖÃ
	 */
	@Override
	public long getItemId(int position) {
		return position;
	}

	@Override
	public abstract View getView(int id, View view, ViewGroup parent);

}
