LoadingIndicator

This class implements the loading indicators.

Constructors

Link copied to clipboard
constructor(@NonNull context: Context)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet, @AttrRes defStyleAttr: Int)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Returns the container color for this loading indicator.
Link copied to clipboard
Returns the container height for this loading indicator in px.
Link copied to clipboard
Returns the container width for this loading indicator in px.
Link copied to clipboard
Returns the indicator color(s) for this loading indicator in an int array.
Link copied to clipboard
open fun getIndicatorSize(): Int
Returns the indicator size for this loading indicator in px.
Link copied to clipboard
open fun hide()
Hides the loading indicator.
Link copied to clipboard
open fun invalidateDrawable(@NonNull drawable: Drawable)
Link copied to clipboard
open fun setContainerColor(@ColorInt containerColor: Int)
Sets a new container color for this loading indicator.
Link copied to clipboard
open fun setContainerHeight(@Px containerHeight: Int)
Sets a new container height for this loading indicator.
Link copied to clipboard
open fun setContainerWidth(@Px containerWidth: Int)
Sets a new container width for this loading indicator.
Link copied to clipboard
open fun setIndicatorColor(@ColorInt indicatorColors: Array<Int>)
Sets a new indicator color (or a sequence of indicator colors) for this loading indicator.
Link copied to clipboard
open fun setIndicatorSize(@Px indicatorSize: Int)
Sets a new indicator size for this loading indicator.
Link copied to clipboard
open fun show()
Shows the loading indicator.