Added in API level 1

AbsSeekBar


abstract class AbsSeekBar : ProgressBar
kotlin.Any
   ↳ android.view.View
   ↳ android.widget.ProgressBar
   ↳ android.widget.AbsSeekBar

AbsSeekBar extends the capabilities of ProgressBar by adding a draggable thumb.

Summary

Inherited XML attributes
Inherited constants
Public constructors
AbsSeekBar(context: Context!)

AbsSeekBar(context: Context!, attrs: AttributeSet!)

AbsSeekBar(context: Context!, attrs: AttributeSet!, defStyleAttr: Int)

AbsSeekBar(context: Context!, attrs: AttributeSet!, defStyleAttr: Int, defStyleRes: Int)

Public methods
open Unit

This function is called whenever the view hotspot changes and needs to be propagated to drawables or child views managed by the view.

open CharSequence!

Return the class name of this object to be used for accessibility purposes.

open Int

Returns the amount of progress changed via the arrow keys.

open Boolean

Returns whether the track should be split by the thumb.

open Drawable!

Return the drawable used to represent the scroll thumb - the component that the user can drag back and forth indicating the current value by its position.

open Int

open BlendMode?

Returns the blending mode used to apply the tint to the thumb drawable, if specified.

open ColorStateList?

Returns the tint applied to the thumb drawable, if specified.

open PorterDuff.Mode?

Returns the blending mode used to apply the tint to the thumb drawable, if specified.

open Drawable!

open BlendMode?

Returns the blending mode used to apply the tint to the tick mark drawable, if specified.

open ColorStateList?

Returns the tint applied to the tick mark drawable, if specified.

open PorterDuff.Mode?

Returns the blending mode used to apply the tint to the tick mark drawable, if specified.

open Unit

Call Drawable.jumpToCurrentState() on all Drawable objects associated with this view.

open Boolean
onKeyDown(keyCode: Int, event: KeyEvent!)

Default implementation of KeyEvent.Callback.onKeyDown(): perform press of the view when KeyEvent.KEYCODE_DPAD_CENTER or KeyEvent.KEYCODE_ENTER is released, if the view is enabled and clickable.

open Unit
onRtlPropertiesChanged(layoutDirection: Int)

Called when any RTL property (layout direction or text direction or text alignment) has been changed.

open Boolean

Implement this method to handle pointer events.

open Unit

Sets the amount of progress changed via the arrow keys.

open Unit
setMax(max: Int)

Set the upper range of the progress bar max.

open Unit
setMin(min: Int)

Set the lower range of the progress bar to min.

open Unit
setSplitTrack(splitTrack: Boolean)

Specifies whether the track should be split by the thumb.

open Unit

Sets a list of areas within this view's post-layout coordinate space where the system should not intercept touch or other pointing device gestures.

open Unit
setThumb(thumb: Drawable!)

Sets the thumb that will be drawn at the end of the progress meter within the SeekBar.

open Unit
setThumbOffset(thumbOffset: Int)

Sets the thumb offset that allows the thumb to extend out of the range of the track.

open Unit

Specifies the blending mode used to apply the tint specified by setThumbTintList(ColorStateList)} to the thumb drawable.

open Unit

Applies a tint to the thumb drawable.

open Unit

Specifies the blending mode used to apply the tint specified by setThumbTintList(ColorStateList)} to the thumb drawable.

open Unit
setTickMark(tickMark: Drawable!)

Sets the drawable displayed at each progress position, e.

open Unit

Specifies the blending mode used to apply the tint specified by setTickMarkTintList(ColorStateList)} to the tick mark drawable.

open Unit

Applies a tint to the tick mark drawable.

open Unit

Specifies the blending mode used to apply the tint specified by setTickMarkTintList(ColorStateList)} to the tick mark drawable.

Protected methods
open Unit

This function is called whenever the state of the view changes in such a way that it impacts the state of drawables being shown.

open Unit
onDraw(canvas: Canvas)

Implement this to do your drawing.

open Unit
onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int)

Measure the view and its content to determine the measured width and the measured height.

open Unit
onSizeChanged(w: Int, h: Int, oldw: Int, oldh: Int)

This is called during layout when the size of this view has changed.

open Boolean

If your view subclass is displaying its own Drawable objects, it should override this function and return true for any Drawable it is displaying.

Inherited functions