Code example for ProgressBar

Methods: setVisibility

0
        } 
 
        mIsLoading = isLoading;
 
        if (isLoading) {
            mProgressBar.setVisibility(View.VISIBLE);
            mImageView.setVisibility(View.GONE);
        } else { 
            mImageView.setVisibility(View.VISIBLE);
            mProgressBar.setVisibility(View.GONE);
        } 
    } 
 
    public boolean isLoading() { 
        return mIsLoading;
    } 
 
    public ProgressBar getProgressBar() {
        return mProgressBar;
    } 
Connect your IDE to all the code out there  Get Codota for Java