Code example for ListFragment

0
import android.view.ViewGroup; 
import android.widget.AbsListView; 
import android.widget.AbsListView.OnScrollListener; 
import android.widget.ListView; 
 
public class BaseSupportListFragment extends ListFragment implements IBaseFragment, Constants, OnScrollListener,
		RefreshScrollTopInterface { 
 
	private boolean mActivityFirstCreated;
	private boolean mIsInstanceStateSaved;
 
	private boolean mReachedBottom, mNotReachedBottomBefore = true;
 
	public final TwidereApplication getApplication() { 
		return TwidereApplication.getInstance(getActivity());
	} 
 
	public final ContentResolver getContentResolver() {
		final Activity activity = getActivity();
		if (activity != null) return activity.getContentResolver();
		return null;