Code example for ResourceCursorAdapter

Methods: swapCursor

-1
        mAdapter.swapCursor(data);
        setListShown(true);
    } 
 
    public void onLoaderReset(Loader<Cursor> listLoader) {
        mAdapter.swapCursor(null);
    } 
 
//------------------------------------------ 
//  Inner Classes 
//------------------------------------------ 
 
    public final class NewsItemsListAdapter extends ResourceCursorAdapter {
 
        public NewsItemsListAdapter(Context context) {
            super(context, R.layout.list_item_news_item, null, true);
        } 
 
        @Override 
        public void bindView(View view, Context context, Cursor cursor) {
            ViewHolder holder = (ViewHolder) view.getTag();