FileDocCategorySizeDatePackage
ProgressCategory.javaAPI DocAndroid 1.5 API1754Wed May 06 22:42:48 BST 2009com.android.settings

ProgressCategory

public class ProgressCategory extends android.preference.PreferenceCategory

Fields Summary
private boolean
mProgress
Constructors Summary
public ProgressCategory(android.content.Context context, android.util.AttributeSet attrs)

    
         
        super(context, attrs);
        setLayoutResource(R.layout.preference_progress_category);
    
Methods Summary
public voidonBindView(android.view.View view)

        super.onBindView(view);
        View textView = view.findViewById(R.id.scanning_text);
        View progressBar = view.findViewById(R.id.scanning_progress);

        int visibility = mProgress ? View.VISIBLE : View.INVISIBLE;
        textView.setVisibility(visibility);
        progressBar.setVisibility(visibility);
    
public voidsetProgress(boolean progressOn)
Turn on/off the progress indicator and text on the right.

param
progressOn whether or not the progress should be displayed

        mProgress = progressOn;
        notifyChanged();