Methods Summary |
---|
public void | setIndeterminate(boolean isIndeterminate)
mIsIndeterminate = isIndeterminate;
setVisibility(mIsIndeterminate);
|
public void | setMax(int max)
mDeterminate.setMax(max);
|
public void | setProgress(int progress)
mDeterminate.setProgress(progress);
|
public void | setVisibility(int visibility)
if (visibility == View.INVISIBLE || visibility == View.GONE) {
mIndeterminate.setVisibility(visibility);
mDeterminate.setVisibility(visibility);
} else {
setVisibility(mIsIndeterminate);
}
|
private void | setVisibility(boolean isIndeterminate)
mIndeterminate.setVisibility(isIndeterminate ? View.VISIBLE : View.GONE);
mDeterminate.setVisibility(isIndeterminate ? View.GONE : View.VISIBLE);
|