ProgressBar setVisibility - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for ProgressBar setVisibility method.

This code example shows how to use the following methods:setIndeterminate, setProgress, setSecondaryProgress, setVisibility
        if (mHorizontalProgress == null) {
            return; 
        } 
        switch (value) {
            case Window.PROGRESS_VISIBILITY_ON:
                mHorizontalProgress.setVisibility(View.VISIBLE);
                break; 
 
            case Window.PROGRESS_VISIBILITY_OFF:
                mHorizontalProgress.setVisibility(View.GONE);
                break; 
 
            case Window.PROGRESS_INDETERMINATE_ON:
                mHorizontalProgress.setIndeterminate(true);
                break; 
 
            case Window.PROGRESS_INDETERMINATE_OFF:
                mHorizontalProgress.setIndeterminate(false);
                break; 
 

9
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:setIndeterminate, setProgress, setSecondaryProgress, setVisibility
        if (mHorizontalProgress == null) {
            return; 
        } 
        switch (value) {
            case Window.PROGRESS_VISIBILITY_ON:
                mHorizontalProgress.setVisibility(View.VISIBLE);
                break; 
 
            case Window.PROGRESS_VISIBILITY_OFF:
                mHorizontalProgress.setVisibility(View.GONE);
                break; 
 
            case Window.PROGRESS_INDETERMINATE_ON:
                mHorizontalProgress.setIndeterminate(true);
                break; 
 
            case Window.PROGRESS_INDETERMINATE_OFF:
                mHorizontalProgress.setIndeterminate(false);
                break; 
 

9
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:setId, setLayoutParams, setIndeterminate, setVisibility
This code example shows how to use the following methods:setId, setLayoutParams, setIndeterminate, setVisibility
This code example shows how to use the following methods:getMax, setProgress, setVisibility
    } 
 
    @Override 
    public void onPulled(float percentagePulled) {
        if (mHeaderProgressBar != null) {
            mHeaderProgressBar.setVisibility(View.VISIBLE);
            final float progress = mInterpolator.getInterpolation(percentagePulled);
            mHeaderProgressBar.setProgress(Math.round(mHeaderProgressBar.getMax() * progress));
        } 
    } 
 
    @Override 
    public void onRefreshStarted() { 
        if (mHeaderTextView != null) {
            mHeaderTextView.setText(mRefreshingLabel);
        } 
        if (mHeaderProgressBar != null) {
            mHeaderProgressBar.setVisibility(View.VISIBLE);
            mHeaderProgressBar.setIndeterminate(true);
        } 
8
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:setMax, setProgress, setVisibility
        return mImageView;
    } 
 
 
    public void setProgress(int value, int max) {
        pb.setVisibility(View.VISIBLE);
        pb.setMax(max);
        pb.setProgress(value);
    } 
 
    public ProgressBar getProgressBar() {
        return pb;
    } 
 
    public Button getRetryButton() {
        return retry;
    } 
 
    public void setGif(String bitmapPath) {
        webView.setVisibility(View.VISIBLE);
8
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:setVisibility
        progressBar.setVisibility(View.INVISIBLE);
    } 
 
    public void load() { 
        word.setVisibility(View.INVISIBLE);
        progressBar.setVisibility(View.VISIBLE);
    } 
 
    public void complete() { 
        word.setVisibility(View.VISIBLE);
        progressBar.setVisibility(View.INVISIBLE);
    } 
 
    public boolean isLoading() { 
        return progressBar.getVisibility() == View.VISIBLE;
    } 
 
    public void setErrorMessage(String errorMessage) {
        complete(); 
        this.word.setText(errorMessage);
7
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:setVisibility
					imgView.setVisibility(View.VISIBLE);
				} 
 
				ProgressBar bar = getProgressBar();
				if (bar != null)
					bar.setVisibility(View.GONE);
				 
				FlipViewController controller = controllerRef.get();
				if (controller != null)
					controller.refreshPage(pageIndex);
			}			 
		} 
	} 
 
	public GalleryPage mGalleryPage;
 
	private ImageView imgBackground;
	private ProgressBar pd;
	private LinearLayout lnlPlace;
 
7
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getMax, setProgress, setVisibility
	} 
 
	@Override 
	public void onPulled(final float percentagePulled) {
		if (mHeaderProgressBar != null) {
			mHeaderProgressBar.setVisibility(View.VISIBLE);
			final float progress = mInterpolator.getInterpolation(percentagePulled);
			mHeaderProgressBar.setProgress(Math.round(mHeaderProgressBar.getMax() * progress));
		} 
	} 
 
	@Override 
	public void onRefreshMinimized() { 
		// Here we fade out most of the header, leaving just the progress bar 
		if (mContentLayout != null) {
			mContentLayout.startAnimation(AnimationUtils.loadAnimation(mContentLayout.getContext(),
					R.anim.pull_refresh_fade_out)); 
			mContentLayout.setVisibility(View.INVISIBLE);
		} 
	} 
7
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:invalidate, setMax, setVisibility
            mimetype.setVisibility(View.VISIBLE);
            size.setText("(" + currentValue.getString("length") + " bytes )");
            mimetype.setText("[" + currentValue.getString("mime-type") + "]");
        } 
        if (mode != LayoutMode.VIEW) { 
            progressBar.setVisibility(View.VISIBLE);
        } 
        filename.invalidate();
        size.invalidate();
        mimetype.invalidate();
        if (progressBar != null) {
            progressBar.invalidate();
        } 
        layoutWidget.invalidate();
    } 
 
    @Override 
    public View buildView(LayoutContext context, LayoutMode mode, Document doc,
            List<String> attributeNames, WidgetDefinition widgetDef) {
        super.buildView(context, mode, doc, attributeNames, widgetDef); 

7
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java

Related ProgressBar setVisibility Questions & Answers:

setVisibility Method Overview
Set the enabled state of this view.
See Code Examples for other Android ProgressBar Methods: