Code example for SimpleCursorAdapter

Methods: notifyDataSetChanged, notifyDataSetInvalidated

0
    } 
 
    private void setIndeterminateLoading(boolean isLoading) {
        if (isLoading != mShowIndeterminate) {
            mShowIndeterminate = isLoading;
            notifyDataSetInvalidated();
            notifyDataSetChanged();
        } 
    } 
 
    @Override 
    public int getCount() { 
        if (mShowIndeterminate) {
            return 1; 
        } else { 
            return super.getCount(); 
        } 
    } 
 
    @Override 
Connect your IDE to all the code out there  Get Codota for Java