Example usage for Java android.widget ProgressBar fields, constructors, methods, implement or subclass
The text is from its open source code.
ProgressBar(Context context) Create a new progress bar with range 0...100 and initial progress of 0. | |
ProgressBar(Context context, AttributeSet attrs, int defStyleAttr) | |
ProgressBar(Context context, AttributeSet attrs) |
ViewPropertyAnimator | animate() This method returns a ViewPropertyAnimator object, which can be used to animate specific properties on this View. |
void | clearAnimation() Cancels any animations for this view. |
Context | getContext() Returns the context the view is running in, through which it can access the current theme, resources, etc. |
Drawable | getIndeterminateDrawable() Get the drawable used to draw the progress bar in indeterminate mode. |
int | getMax() Return the upper limit of this progress bar's range. |
int | getMeasuredHeight() Like #getMeasuredHeightAndState() , but only returns the raw height component (that is the result is masked by #MEASURED_SIZE_MASK ). |
int | getProgress() Get the progress bar's current level of progress. |
Drawable | getProgressDrawable() Get the drawable used to draw the progress bar in progress mode. |
Resources | getResources() Returns the resources associated with this view. |
Object | getTag() Returns this view's tag. |
int | getVisibility() Returns the visibility status for this view. |
int | getWidth() Return the width of your view. |
void | incrementProgressBy(int diff) Increase the progress bar's progress by the specified amount. |
boolean | requestFocus() Call this to try to give focus to a specific view or to one of its descendants. |
void | setAlpha(@FloatRange(from = 0.0, to = 1.0) float alpha) Sets the opacity of the view to a value from 0 to 1, where 0 means the view is completely transparent and 1 means the view is completely opaque. |
void | setEnabled(boolean enabled) Set the enabled state of this view. |
void | setId(@IdRes int id) Sets the identifier for this view. |
void | setIndeterminate(boolean indeterminate) Change the indeterminate mode for this progress bar. |
void | setIndeterminateDrawable(Drawable d) Define the drawable used to draw the progress bar in indeterminate mode. |
void | setIndeterminateTintList(@Nullable ColorStateList tint) Applies a tint to the indeterminate drawable. |
void | setLayoutParams(ViewGroup.LayoutParams params) Set the layout parameters associated with this view. |
void | setMax(int max) Set the upper range of the progress bar max. |
void | setOnClickListener(@Nullable OnClickListener l) Register a callback to be invoked when this view is clicked. |
void | setPadding(int left, int top, int right, int bottom) Sets the padding. |
void | setProgress(int progress) Sets the current progress to the specified value. |
void | setProgressDrawable(Drawable d) Define the drawable used to draw the progress bar in progress mode. |
void | setProgressTintList(@Nullable ColorStateList tint) Applies a tint to the progress indicator, if one exists, or to the entire progress drawable otherwise. |
void | setScaleY(float scaleY) Sets the amount that the view is scaled in Y around the pivot point, as a proportion of the view's unscaled width. |
void | setSecondaryProgress(int secondaryProgress) Set the current secondary progress to the specified value. |
void | setTag(final Object tag) Sets the tag associated with this view. |
void | setVisibility(@Visibility int visibility) Set the visibility state of this view. |
void | startAnimation(Animation animation) Start the specified animation now. |