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 
Stop searching for code, let great code find you!  Add Codota to your java IDE