Added in API level 1

SeekBar

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

A SeekBar is an extension of ProgressBar that adds a draggable thumb. The user can touch the thumb and drag left or right to set the current progress level or use the arrow keys. Placing focusable widgets to the left or right of a SeekBar is discouraged.

Clients of the SeekBar can attach a SeekBar.OnSeekBarChangeListener to be notified of the user's actions.

Summary

Nested classes
abstract

A callback that notifies clients when the progress level has been changed.

XML attributes
android:thumb Draws the thumb on a seekbar.
Inherited XML attributes
Inherited constants
Public constructors
SeekBar(context: Context!)

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

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

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

Public methods
open CharSequence!

open Unit

Sets a listener to receive notifications of changes to the SeekBar's progress level.

Inherited functions
Inherited properties

XML attributes

android:thumb

android:thumb
Draws the thumb on a seekbar.

May be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".

Public constructors

SeekBar

Added in API level 1
SeekBar(context: Context!)

SeekBar

Added in API level 1
SeekBar(
    context: Context!,
    attrs: AttributeSet!)

SeekBar

Added in API level 1
SeekBar(
    context: Context!,
    attrs: AttributeSet!,
    defStyleAttr: Int)

SeekBar

Added in API level 1
SeekBar(
    context: Context!,
    attrs: AttributeSet!,
    defStyleAttr: Int,
    defStyleRes: Int)

Public methods

getAccessibilityClassName

Added in API level 23
open fun getAccessibilityClassName(): CharSequence!

setOnSeekBarChangeListener

Added in API level 1
open fun setOnSeekBarChangeListener(l: SeekBar.OnSeekBarChangeListener!): Unit

Sets a listener to receive notifications of changes to the SeekBar's progress level. Also provides notifications of when the user starts and stops a touch gesture within the SeekBar.

Parameters
l SeekBar.OnSeekBarChangeListener!: The seek bar notification listener