Code example for ListFragment

0
import java.util.HashMap; 
 
/** 
 * @author John Watkinson 
 */ 
public class SummaryFragment extends ListFragment implements LoaderManager.LoaderCallbacks<Cursor>, PostStatusListener {
 
    public static final int ACTIVITY_REQUEST_COMPOSE = 1;
    public static final int ACTIVITY_REQUEST_DETAIL = 2;
    public static final int ACTIVITY_REQUEST_SYNC = 3;
 
    private int curCheckPosition = -1;
    private CursorAdapter adapter;
    private String search;
    private Button searchButton;
 
    private HandlerThread decoderThread;
    private Handler decoderHandler; 
    private HashMap<ImageView, Integer> imagesToLoad = new HashMap<ImageView, Integer>();
    private boolean isScrolling = false;