Slider

public class Slider
extends View

java.lang.Object
   ↳ android.view.View
     ↳ com.google.android.material.slider.Slider


A widget that allows picking a value within a given range by sliding a thumb along a horizontal line.

android:value: Optional. The initial value of the slider. If not specified, the slider's minimum value android:valueFrom is used.

For more information, see the component developer guidance and design guidelines.

Summary

Nested classes

interface Slider.OnChangeListener

Interface definition for a callback invoked when a slider's value is changed. 

interface Slider.OnSliderTouchListener

Interface definition for callbacks invoked when a slider's touch event is being started/stopped. 

Inherited constants

int ACCESSIBILITY_DATA_SENSITIVE_AUTO

int ACCESSIBILITY_DATA_SENSITIVE_NO

int ACCESSIBILITY_DATA_SENSITIVE_YES

int ACCESSIBILITY_LIVE_REGION_ASSERTIVE

int ACCESSIBILITY_LIVE_REGION_NONE

int ACCESSIBILITY_LIVE_REGION_POLITE

int AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS

String AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE

String AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY

String AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH

String AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR

String AUTOFILL_HINT_CREDIT_CARD_NUMBER

String AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE

String AUTOFILL_HINT_EMAIL_ADDRESS

String AUTOFILL_HINT_NAME

String AUTOFILL_HINT_PASSWORD

String AUTOFILL_HINT_PHONE

String AUTOFILL_HINT_POSTAL_ADDRESS

String AUTOFILL_HINT_POSTAL_CODE

String AUTOFILL_HINT_USERNAME

int AUTOFILL_TYPE_DATE

int AUTOFILL_TYPE_LIST

int AUTOFILL_TYPE_NONE

int AUTOFILL_TYPE_TEXT

int AUTOFILL_TYPE_TOGGLE

int DRAG_FLAG_ACCESSIBILITY_ACTION

int DRAG_FLAG_GLOBAL

int DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION

int DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION

int DRAG_FLAG_GLOBAL_URI_READ

int DRAG_FLAG_GLOBAL_URI_WRITE

int DRAG_FLAG_OPAQUE

int DRAWING_CACHE_QUALITY_AUTO

int DRAWING_CACHE_QUALITY_HIGH

int DRAWING_CACHE_QUALITY_LOW

int FIND_VIEWS_WITH_CONTENT_DESCRIPTION

int FIND_VIEWS_WITH_TEXT

int FOCUSABLE

int FOCUSABLES_ALL

int FOCUSABLES_TOUCH_MODE

int FOCUSABLE_AUTO

int FOCUS_BACKWARD

int FOCUS_DOWN

int FOCUS_FORWARD

int FOCUS_LEFT

int FOCUS_RIGHT

int FOCUS_UP

int GONE

int HAPTIC_FEEDBACK_ENABLED

int IMPORTANT_FOR_ACCESSIBILITY_AUTO

int IMPORTANT_FOR_ACCESSIBILITY_NO

int IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS

int IMPORTANT_FOR_ACCESSIBILITY_YES

int IMPORTANT_FOR_AUTOFILL_AUTO

int IMPORTANT_FOR_AUTOFILL_NO

int IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS

int IMPORTANT_FOR_AUTOFILL_YES

int IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS

int IMPORTANT_FOR_CONTENT_CAPTURE_AUTO

int IMPORTANT_FOR_CONTENT_CAPTURE_NO

int IMPORTANT_FOR_CONTENT_CAPTURE_NO_EXCLUDE_DESCENDANTS

int IMPORTANT_FOR_CONTENT_CAPTURE_YES

int IMPORTANT_FOR_CONTENT_CAPTURE_YES_EXCLUDE_DESCENDANTS

int INVISIBLE

int KEEP_SCREEN_ON

int LAYER_TYPE_HARDWARE

int LAYER_TYPE_NONE

int LAYER_TYPE_SOFTWARE

int LAYOUT_DIRECTION_INHERIT

int LAYOUT_DIRECTION_LOCALE

int LAYOUT_DIRECTION_LTR

int LAYOUT_DIRECTION_RTL

int MEASURED_HEIGHT_STATE_SHIFT

int MEASURED_SIZE_MASK

int MEASURED_STATE_MASK

int MEASURED_STATE_TOO_SMALL

int NOT_FOCUSABLE

int NO_ID

int OVER_SCROLL_ALWAYS

int OVER_SCROLL_IF_CONTENT_SCROLLS

int OVER_SCROLL_NEVER

int SCREEN_STATE_OFF

int SCREEN_STATE_ON

int SCROLLBARS_INSIDE_INSET

int SCROLLBARS_INSIDE_OVERLAY

int SCROLLBARS_OUTSIDE_INSET

int SCROLLBARS_OUTSIDE_OVERLAY

int SCROLLBAR_POSITION_DEFAULT

int SCROLLBAR_POSITION_LEFT

int SCROLLBAR_POSITION_RIGHT

int SCROLL_AXIS_HORIZONTAL

int SCROLL_AXIS_NONE

int SCROLL_AXIS_VERTICAL

int SCROLL_CAPTURE_HINT_AUTO

int SCROLL_CAPTURE_HINT_EXCLUDE

int SCROLL_CAPTURE_HINT_EXCLUDE_DESCENDANTS

int SCROLL_CAPTURE_HINT_INCLUDE

int SCROLL_INDICATOR_BOTTOM

int SCROLL_INDICATOR_END

int SCROLL_INDICATOR_LEFT

int SCROLL_INDICATOR_RIGHT

int SCROLL_INDICATOR_START

int SCROLL_INDICATOR_TOP

int SOUND_EFFECTS_ENABLED

int STATUS_BAR_HIDDEN

int STATUS_BAR_VISIBLE

int SYSTEM_UI_FLAG_FULLSCREEN

int SYSTEM_UI_FLAG_HIDE_NAVIGATION

int SYSTEM_UI_FLAG_IMMERSIVE

int SYSTEM_UI_FLAG_IMMERSIVE_STICKY

int SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN

int SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION

int SYSTEM_UI_FLAG_LAYOUT_STABLE

int SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR

int SYSTEM_UI_FLAG_LIGHT_STATUS_BAR

int SYSTEM_UI_FLAG_LOW_PROFILE

int SYSTEM_UI_FLAG_VISIBLE

int SYSTEM_UI_LAYOUT_FLAGS

int TEXT_ALIGNMENT_CENTER

int TEXT_ALIGNMENT_GRAVITY

int TEXT_ALIGNMENT_INHERIT

int TEXT_ALIGNMENT_TEXT_END

int TEXT_ALIGNMENT_TEXT_START

int TEXT_ALIGNMENT_VIEW_END

int TEXT_ALIGNMENT_VIEW_START

int TEXT_DIRECTION_ANY_RTL

int TEXT_DIRECTION_FIRST_STRONG

int TEXT_DIRECTION_FIRST_STRONG_LTR

int TEXT_DIRECTION_FIRST_STRONG_RTL

int TEXT_DIRECTION_INHERIT

int TEXT_DIRECTION_LOCALE

int TEXT_DIRECTION_LTR

int TEXT_DIRECTION_RTL

String VIEW_LOG_TAG

int VISIBLE

Inherited fields

public static final Property<View, Float> ALPHA

protected static final int[] EMPTY_STATE_SET

protected static final int[] ENABLED_FOCUSED_SELECTED_STATE_SET

protected static final int[] ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET

protected static final int[] ENABLED_FOCUSED_STATE_SET

protected static final int[] ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET

protected static final int[] ENABLED_SELECTED_STATE_SET

protected static final int[] ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET

protected static final int[] ENABLED_STATE_SET

protected static final int[] ENABLED_WINDOW_FOCUSED_STATE_SET

protected static final int[] FOCUSED_SELECTED_STATE_SET

protected static final int[] FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET

protected static final int[] FOCUSED_STATE_SET

protected static final int[] FOCUSED_WINDOW_FOCUSED_STATE_SET

protected static final int[] PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET

protected static final int[] PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET

protected static final int[] PRESSED_ENABLED_FOCUSED_STATE_SET

protected static final int[] PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET

protected static final int[] PRESSED_ENABLED_SELECTED_STATE_SET

protected static final int[] PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET

protected static final int[] PRESSED_ENABLED_STATE_SET

protected static final int[] PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET

protected static final int[] PRESSED_FOCUSED_SELECTED_STATE_SET

protected static final int[] PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET

protected static final int[] PRESSED_FOCUSED_STATE_SET

protected static final int[] PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET

protected static final int[] PRESSED_SELECTED_STATE_SET

protected static final int[] PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET

protected static final int[] PRESSED_STATE_SET

protected static final int[] PRESSED_WINDOW_FOCUSED_STATE_SET

public static final Property<View, Float> ROTATION

public static final Property<View, Float> ROTATION_X

public static final Property<View, Float> ROTATION_Y

public static final Property<View, Float> SCALE_X

public static final Property<View, Float> SCALE_Y

protected static final int[] SELECTED_STATE_SET

protected static final int[] SELECTED_WINDOW_FOCUSED_STATE_SET

public static final Property<View, Float> TRANSLATION_X

public static final Property<View, Float> TRANSLATION_Y

public static final Property<View, Float> TRANSLATION_Z

protected static final int[] WINDOW_FOCUSED_STATE_SET

public static final Property<View, Float> X

public static final Property<View, Float> Y

public static final Property<View, Float> Z

Public constructors

Slider(Context context)
Slider(Context context, AttributeSet attrs)
Slider(Context context, AttributeSet attrs, int defStyleAttr)

Public methods

void addOnChangeListener(L listener)

Registers a callback to be invoked when the slider changes.

void addOnSliderTouchListener(T listener)

Registers a callback to be invoked when the slider touch event is being started or stopped

void clearOnChangeListeners()

Removes all instances of attached to this slider

void clearOnSliderTouchListeners()

Removes all instances of touch listeners attached to this slider

boolean dispatchHoverEvent(MotionEvent event)
boolean dispatchKeyEvent(KeyEvent event)
CharSequence getAccessibilityClassName()
int getActiveThumbIndex()

Returns the index of the currently active thumb, or -1 if no thumb is active

int getFocusedThumbIndex()

Returns the index of the currently focused thumb

int getHaloRadius()

Returns the radius of the halo.

ColorStateList getHaloTintList()

Returns the color of the halo.

int getLabelBehavior()

Returns the ERROR(/LabelBehavior) used.

float getStepSize()

Returns the step size used to mark the ticks.

float getThumbElevation()

Returns the elevation of the thumb.

int getThumbHeight()

Returns the height of the thumb.

int getThumbRadius()

Returns the radius of the thumb.

ColorStateList getThumbStrokeColor()

Gets the stroke color for the thumb.

float getThumbStrokeWidth()

Gets the stroke width for the thumb

ColorStateList getThumbTintList()

Returns the color of the thumb.

int getThumbTrackGapSize()

Returns the size of the gap between the thumb and the track.

int getThumbWidth()

Returns the width of the thumb.

int getTickActiveRadius()

Returns the radius of the active tick in pixels.

ColorStateList getTickActiveTintList()

Returns the color of the ticks on the active portion of the track.

int getTickInactiveRadius()

Returns the radius of the inactive tick in pixels.

ColorStateList getTickInactiveTintList()

Returns the color of the ticks on the inactive portion of the track.

ColorStateList getTickTintList()

Returns the color of the tick if the active and inactive parts aren't different.

ColorStateList getTrackActiveTintList()

Returns the color of the active portion of the track.

int getTrackHeight()

Returns the height of the track in pixels.

ColorStateList getTrackInactiveTintList()

Returns the color of the inactive portion of the track.

int getTrackInsideCornerSize()

Returns the corner size on the inside of the track (visible with gap).

int getTrackSidePadding()

Returns the side padding of the track.

int getTrackStopIndicatorSize()

Returns the size of the stop indicator at the edges of the track.

ColorStateList getTrackTintList()

Returns the color of the track if the active and inactive parts aren't different.

int getTrackWidth()

Returns the width of the track in pixels.

float getValue()

Returns the value of the slider.

float getValueFrom()

Returns the slider's valueFrom value.

float getValueTo()

Returns the slider's valueTo value.

boolean hasLabelFormatter()

Returns true if the slider has a LabelFormatter attached, false otherwise.

boolean isTickVisible()

Returns whether the tick marks are visible.

boolean onKeyDown(int keyCode, KeyEvent event)
boolean onKeyUp(int keyCode, KeyEvent event)
boolean onTouchEvent(MotionEvent event)
void removeOnChangeListener(L listener)

Removes a callback for value changes from this slider.

void removeOnSliderTouchListener(T listener)

Removes a callback to be invoked when the slider touch event is being started or stopped

void setCustomThumbDrawable(Drawable drawable)

Sets the custom thumb drawable which will be used for all value positions.

void setCustomThumbDrawable(int drawableResId)

Sets the custom thumb drawable which will be used for all value positions.

void setEnabled(boolean enabled)
void setFocusedThumbIndex(int index)

Sets the index of the currently focused thumb

void setHaloRadius(int radius)

Sets the radius of the halo in pixels.

void setHaloRadiusResource(int radius)

Sets the radius of the halo from a dimension resource.

void setHaloTintList(ColorStateList haloColor)

Sets the color of the halo.

void setLabelBehavior(int labelBehavior)

Determines the ERROR(/LabelBehavior) used.

void setLabelFormatter(LabelFormatter formatter)

Registers a LabelFormatter to be used to format the value displayed in the bubble shown when the slider operates in discrete mode.

void setStepSize(float stepSize)

Sets the step size to use to mark the ticks.

void setThumbElevation(float elevation)

Sets the elevation of the thumb.

void setThumbElevationResource(int elevation)

Sets the elevation of the thumb from a dimension resource.

void setThumbHeight(int height)

Sets the height of the thumb in pixels.

void setThumbHeightResource(int height)

Sets the height of the thumb from a dimension resource.

void setThumbRadius(int radius)

Sets the radius of the thumb in pixels.

void setThumbRadiusResource(int radius)

Sets the radius of the thumb from a dimension resource.

void setThumbStrokeColor(ColorStateList thumbStrokeColor)

Sets the stroke color for the thumbs.

void setThumbStrokeColorResource(int thumbStrokeColorResourceId)

Sets the stroke color resource for the thumbs.

void setThumbStrokeWidth(float thumbStrokeWidth)

Sets the stroke width for the thumb.

void setThumbStrokeWidthResource(int thumbStrokeWidthResourceId)

Sets the stroke width dimension resource for the thumb.Both thumbStroke color and thumbStroke width must be set for a stroke to be drawn.

void setThumbTintList(ColorStateList thumbColor)

Sets the color of the thumb.

void setThumbTrackGapSize(int thumbTrackGapSize)

Sets the size of the gap between the thumb and the track.

void setThumbWidth(int width)

Sets the width of the thumb in pixels.

void setThumbWidthResource(int width)

Sets the width of the thumb from a dimension resource.

void setTickActiveRadius(int tickActiveRadius)

Set the radius of the active tick in pixels.

void setTickActiveTintList(ColorStateList tickColor)

Sets the color of the ticks on the active portion of the track.

void setTickInactiveRadius(int tickInactiveRadius)

Set the radius of the inactive tick in pixels.

void setTickInactiveTintList(ColorStateList tickColor)

Sets the color of the ticks on the inactive portion of the track.

void setTickTintList(ColorStateList tickColor)

Sets the color of the tick marks.

void setTickVisible(boolean tickVisible)

Sets whether the tick marks are visible.

void setTrackActiveTintList(ColorStateList trackColor)

Sets the color of the active portion of the track.

void setTrackHeight(int trackHeight)

Set the height of the track in pixels.

void setTrackInactiveTintList(ColorStateList trackColor)

Sets the color of the inactive portion of the track.

void setTrackInsideCornerSize(int cornerSize)

Sets the corner size on the inside of the track (visible with gap).

void setTrackStopIndicatorSize(int trackStopIndicatorSize)

Sets the size of the stop indicator at the edges of the track.

void setTrackTintList(ColorStateList trackColor)

Sets the color of the track.

void setValue(float value)

Sets the value of the slider.

void setValueFrom(float valueFrom)

Sets the slider's valueFrom value.

void setValueTo(float valueTo)

Sets the slider's valueTo value.

Protected methods

void drawableStateChanged()
float getMinSeparation()
void onAttachedToWindow()
void onDetachedFromWindow()
void onDraw(Canvas canvas)
void onFocusChanged(boolean gainFocus, int direction, Rect previouslyFocusedRect)
void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
void onRestoreInstanceState(Parcelable state)
Parcelable onSaveInstanceState()
void onSizeChanged(int w, int h, int oldw, int oldh)
void onVisibilityChanged(View changedView, int visibility)
boolean pickActiveThumb()

Tries to pick the active thumb if one hasn't already been set.

void setActiveThumbIndex(int index)
void setSeparationUnit(int separationUnit)

Inherited methods

void addChildrenForAccessibility(ArrayList<View> arg0)
void addExtraDataToAccessibilityNodeInfo(AccessibilityNodeInfo arg0, String arg1, Bundle arg2)
void addFocusables(ArrayList<View> arg0, int arg1)
void addFocusables(ArrayList<View> arg0, int arg1, int arg2)
void addKeyboardNavigationClusters(Collection<View> arg0, int arg1)
void addOnAttachStateChangeListener(View.OnAttachStateChangeListener arg0)
void addOnLayoutChangeListener(View.OnLayoutChangeListener arg0)
void addOnUnhandledKeyEventListener(View.OnUnhandledKeyEventListener arg0)
void addTouchables(ArrayList<View> arg0)
ViewPropertyAnimator animate()
void announceForAccessibility(CharSequence arg0)
void autofill(AutofillValue arg0)
void autofill(SparseArray<AutofillValue> arg0)
boolean awakenScrollBars(int arg0, boolean arg1)
boolean awakenScrollBars(int arg0)
boolean awakenScrollBars()
void bringToFront()
void buildDrawingCache(boolean arg0)
void buildDrawingCache()
void buildLayer()
boolean callOnClick()
boolean canResolveLayoutDirection()
boolean canResolveTextAlignment()
boolean canResolveTextDirection()
boolean canScrollHorizontally(int arg0)
boolean canScrollVertically(int arg0)
final void cancelDragAndDrop()
void cancelLongPress()
final void cancelPendingInputEvents()
boolean checkInputConnectionProxy(View arg0)
void clearAnimation()
void clearFocus()
void clearViewTranslationCallback()
static int combineMeasuredStates(int arg0, int arg1)
int computeHorizontalScrollExtent()
int computeHorizontalScrollOffset()
int computeHorizontalScrollRange()
void computeScroll()
WindowInsets computeSystemWindowInsets(WindowInsets arg0, Rect arg1)
int computeVerticalScrollExtent()
int computeVerticalScrollOffset()
int computeVerticalScrollRange()
AccessibilityNodeInfo createAccessibilityNodeInfo()
void createContextMenu(ContextMenu arg0)
void destroyDrawingCache()
WindowInsets dispatchApplyWindowInsets(WindowInsets arg0)
boolean dispatchCapturedPointerEvent(MotionEvent arg0)
void dispatchConfigurationChanged(Configuration arg0)
void dispatchCreateViewTranslationRequest(Map<AutofillId, long[]> arg0, int[] arg1, TranslationCapability arg2, List<ViewTranslationRequest> arg3)
void dispatchDisplayHint(int arg0)
boolean dispatchDragEvent(DragEvent arg0)
void dispatchDraw(Canvas arg0)
void dispatchDrawableHotspotChanged(float arg0, float arg1)
void dispatchFinishTemporaryDetach()
boolean dispatchGenericFocusedEvent(MotionEvent arg0)
boolean dispatchGenericMotionEvent(MotionEvent arg0)
boolean dispatchGenericPointerEvent(MotionEvent arg0)
boolean dispatchHoverEvent(MotionEvent arg0)
boolean dispatchKeyEvent(KeyEvent arg0)
boolean dispatchKeyEventPreIme(KeyEvent arg0)
boolean dispatchKeyShortcutEvent(KeyEvent arg0)
boolean dispatchNestedFling(float arg0, float arg1, boolean arg2)
boolean dispatchNestedPreFling(float arg0, float arg1)
boolean dispatchNestedPrePerformAccessibilityAction(int arg0, Bundle arg1)
boolean dispatchNestedPreScroll(int arg0, int arg1, int[] arg2, int[] arg3)
boolean dispatchNestedScroll(int arg0, int arg1, int arg2, int arg3, int[] arg4)
void dispatchPointerCaptureChanged(boolean arg0)
boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent arg0)
void dispatchProvideAutofillStructure(ViewStructure arg0, int arg1)
void dispatchProvideStructure(ViewStructure arg0)
void dispatchRestoreInstanceState(SparseArray<Parcelable> arg0)
void dispatchSaveInstanceState(SparseArray<Parcelable> arg0)
void dispatchScrollCaptureSearch(Rect arg0, Point arg1, Consumer<ScrollCaptureTarget> arg2)
void dispatchSetActivated(boolean arg0)
void dispatchSetPressed(boolean arg0)
void dispatchSetSelected(boolean arg0)
void dispatchStartTemporaryDetach()
void dispatchSystemUiVisibilityChanged(int arg0)
boolean dispatchTouchEvent(MotionEvent arg0)
boolean dispatchTrackballEvent(MotionEvent arg0)
boolean dispatchUnhandledMove(View arg0, int arg1)
void dispatchVisibilityChanged(View arg0, int arg1)
void dispatchWindowFocusChanged(boolean arg0)
void dispatchWindowInsetsAnimationEnd(WindowInsetsAnimation arg0)
void dispatchWindowInsetsAnimationPrepare(WindowInsetsAnimation arg0)
WindowInsets dispatchWindowInsetsAnimationProgress(WindowInsets arg0, List<WindowInsetsAnimation> arg1)
WindowInsetsAnimation.Bounds dispatchWindowInsetsAnimationStart(WindowInsetsAnimation arg0, WindowInsetsAnimation.Bounds arg1)
void dispatchWindowSystemUiVisiblityChanged(int arg0)
void dispatchWindowVisibilityChanged(int arg0)
void draw(Canvas arg0)
void drawableHotspotChanged(float arg0, float arg1)
void drawableStateChanged()
View findFocus()
final OnBackInvokedDispatcher findOnBackInvokedDispatcher()
final <T extends View> T findViewById(int arg0)
final <T extends View> T findViewWithTag(Object arg0)
void findViewsWithText(ArrayList<View> arg0, CharSequence arg1, int arg2)
boolean fitSystemWindows(Rect arg0)
View focusSearch(int arg0)
void forceHasOverlappingRendering(boolean arg0)
void forceLayout()
boolean gatherTransparentRegion(Region arg0)
void generateDisplayHash(String arg0, Rect arg1, Executor arg2, DisplayHashResultCallback arg3)
static int generateViewId()
CharSequence getAccessibilityClassName()
View.AccessibilityDelegate getAccessibilityDelegate()
int getAccessibilityLiveRegion()
AccessibilityNodeProvider getAccessibilityNodeProvider()
CharSequence getAccessibilityPaneTitle()
int getAccessibilityTraversalAfter()
int getAccessibilityTraversalBefore()
String getAllowedHandwritingDelegatePackageName()
String getAllowedHandwritingDelegatorPackageName()
float getAlpha()
Animation getAnimation()
Matrix getAnimationMatrix()
IBinder getApplicationWindowToken()
int[] getAttributeResolutionStack(int arg0)
Map<Integer, Integer> getAttributeSourceResourceMap()
String[] getAutofillHints()
final AutofillId getAutofillId()
int getAutofillType()
AutofillValue getAutofillValue()
Drawable getBackground()
BlendMode getBackgroundTintBlendMode()
ColorStateList getBackgroundTintList()
PorterDuff.Mode getBackgroundTintMode()
int getBaseline()
final int getBottom()
float getBottomFadingEdgeStrength()
int getBottomPaddingOffset()
float getCameraDistance()
boolean getClipBounds(Rect arg0)
Rect getClipBounds()
final boolean getClipToOutline()
final ContentCaptureSession getContentCaptureSession()
CharSequence getContentDescription()
final Context getContext()
ContextMenu.ContextMenuInfo getContextMenuInfo()
final boolean getDefaultFocusHighlightEnabled()
static int getDefaultSize(int arg0, int arg1)
Display getDisplay()
final int[] getDrawableState()
Bitmap getDrawingCache()
Bitmap getDrawingCache(boolean arg0)
int getDrawingCacheBackgroundColor()
int getDrawingCacheQuality()
void getDrawingRect(Rect arg0)
long getDrawingTime()
float getElevation()
int getExplicitStyle()
boolean getFilterTouchesWhenObscured()
boolean getFitsSystemWindows()
int getFocusable()
ArrayList<View> getFocusables(int arg0)
void getFocusedRect(Rect arg0)
Drawable getForeground()
int getForegroundGravity()
BlendMode getForegroundTintBlendMode()
ColorStateList getForegroundTintList()
PorterDuff.Mode getForegroundTintMode()
final boolean getGlobalVisibleRect(Rect arg0)
boolean getGlobalVisibleRect(Rect arg0, Point arg1)
Handler getHandler()
float getHandwritingBoundsOffsetBottom()
float getHandwritingBoundsOffsetLeft()
float getHandwritingBoundsOffsetRight()
float getHandwritingBoundsOffsetTop()
Runnable getHandwritingDelegatorCallback()
final boolean getHasOverlappingRendering()
final int getHeight()
void getHitRect(Rect arg0)
int getHorizontalFadingEdgeLength()
int getHorizontalScrollbarHeight()
Drawable getHorizontalScrollbarThumbDrawable()
Drawable getHorizontalScrollbarTrackDrawable()
int getId()
int getImportantForAccessibility()
int getImportantForAutofill()
int getImportantForContentCapture()
boolean getKeepScreenOn()
KeyEvent.DispatcherState getKeyDispatcherState()
int getLabelFor()
int getLayerType()
int getLayoutDirection()
ViewGroup.LayoutParams getLayoutParams()
final int getLeft()
float getLeftFadingEdgeStrength()
int getLeftPaddingOffset()
final boolean getLocalVisibleRect(Rect arg0)
void getLocationInSurface(int[] arg0)
void getLocationInWindow(int[] arg0)
void getLocationOnScreen(int[] arg0)
Matrix getMatrix()
final int getMeasuredHeight()
final int getMeasuredHeightAndState()
final int getMeasuredState()
final int getMeasuredWidth()
final int getMeasuredWidthAndState()
int getMinimumHeight()
int getMinimumWidth()
int getNextClusterForwardId()
int getNextFocusDownId()
int getNextFocusForwardId()
int getNextFocusLeftId()
int getNextFocusRightId()
int getNextFocusUpId()
View.OnFocusChangeListener getOnFocusChangeListener()
int getOutlineAmbientShadowColor()
ViewOutlineProvider getOutlineProvider()
int getOutlineSpotShadowColor()
int getOverScrollMode()
ViewOverlay getOverlay()
int getPaddingBottom()
int getPaddingEnd()
int getPaddingLeft()
int getPaddingRight()
int getPaddingStart()
int getPaddingTop()
final ViewParent getParent()
ViewParent getParentForAccessibility()
float getPivotX()
float getPivotY()
PointerIcon getPointerIcon()
final List<Rect> getPreferKeepClearRects()
String[] getReceiveContentMimeTypes()
Resources getResources()
final boolean getRevealOnFocusHint()
final int getRight()
float getRightFadingEdgeStrength()
int getRightPaddingOffset()
AttachedSurfaceControl getRootSurfaceControl()
View getRootView()
WindowInsets getRootWindowInsets()
float getRotation()
float getRotationX()
float getRotationY()
float getScaleX()
float getScaleY()
int getScrollBarDefaultDelayBeforeFade()
int getScrollBarFadeDuration()
int getScrollBarSize()
int getScrollBarStyle()
int getScrollCaptureHint()
int getScrollIndicators()
final int getScrollX()
final int getScrollY()
int getSolidColor()
int getSourceLayoutResId()
final CharSequence getStateDescription()
StateListAnimator getStateListAnimator()
int getSuggestedMinimumHeight()
int getSuggestedMinimumWidth()
List<Rect> getSystemGestureExclusionRects()
int getSystemUiVisibility()
Object getTag()
Object getTag(int arg0)
int getTextAlignment()
int getTextDirection()
CharSequence getTooltipText()
final int getTop()
float getTopFadingEdgeStrength()
int getTopPaddingOffset()
TouchDelegate getTouchDelegate()
ArrayList<View> getTouchables()
float getTransitionAlpha()
String getTransitionName()
float getTranslationX()
float getTranslationY()
float getTranslationZ()
long getUniqueDrawingId()
int getVerticalFadingEdgeLength()
int getVerticalScrollbarPosition()
Drawable getVerticalScrollbarThumbDrawable()
Drawable getVerticalScrollbarTrackDrawable()
int getVerticalScrollbarWidth()
ViewTranslationResponse getViewTranslationResponse()
ViewTreeObserver getViewTreeObserver()
int getVisibility()
final int getWidth()
int getWindowAttachCount()
WindowId getWindowId()
WindowInsetsController getWindowInsetsController()
int getWindowSystemUiVisibility()
IBinder getWindowToken()
int getWindowVisibility()
void getWindowVisibleDisplayFrame(Rect arg0)
float getX()
float getY()
float getZ()
boolean hasExplicitFocusable()
boolean hasFocus()
boolean hasFocusable()
boolean hasNestedScrollingParent()
boolean hasOnClickListeners()
boolean hasOnLongClickListeners()
boolean hasOverlappingRendering()
boolean hasPointerCapture()
boolean hasTransientState()
boolean hasWindowFocus()
static View inflate(Context arg0, int arg1, ViewGroup arg2)
void invalidate()
void invalidate(Rect arg0)
void invalidate(int arg0, int arg1, int arg2, int arg3)
void invalidateDrawable(Drawable arg0)
void invalidateOutline()
boolean isAccessibilityDataSensitive()
boolean isAccessibilityFocused()
boolean isAccessibilityHeading()
boolean isActivated()
boolean isAttachedToWindow()
boolean isAutoHandwritingEnabled()
boolean isClickable()
boolean isContextClickable()
boolean isCredential()
boolean isDirty()
boolean isDrawingCacheEnabled()
boolean isDuplicateParentStateEnabled()
boolean isEnabled()
final boolean isFocusable()
final boolean isFocusableInTouchMode()
boolean isFocused()
final boolean isFocusedByDefault()
boolean isForceDarkAllowed()
boolean isHandwritingDelegate()
boolean isHapticFeedbackEnabled()
boolean isHardwareAccelerated()
boolean isHorizontalFadingEdgeEnabled()
boolean isHorizontalScrollBarEnabled()
boolean isHovered()
boolean isImportantForAccessibility()
final boolean isImportantForAutofill()
final boolean isImportantForContentCapture()
boolean isInEditMode()
boolean isInLayout()
boolean isInTouchMode()
final boolean isKeyboardNavigationCluster()
boolean isLaidOut()
boolean isLayoutDirectionResolved()
boolean isLayoutRequested()
boolean isLongClickable()
boolean isNestedScrollingEnabled()
boolean isOpaque()
boolean isPaddingOffsetRequired()
boolean isPaddingRelative()
boolean isPivotSet()
final boolean isPreferKeepClear()
boolean isPressed()
boolean isSaveEnabled()
boolean isSaveFromParentEnabled()
boolean isScreenReaderFocusable()
boolean isScrollContainer()
boolean isScrollbarFadingEnabled()
boolean isSelected()
final boolean isShowingLayoutBounds()
boolean isShown()
boolean isSoundEffectsEnabled()
final boolean isTemporarilyDetached()
boolean isTextAlignmentResolved()
boolean isTextDirectionResolved()
boolean isVerticalFadingEdgeEnabled()
boolean isVerticalScrollBarEnabled()
boolean isVisibleToUserForAutofill(int arg0)
void jumpDrawablesToCurrentState()
View keyboardNavigationClusterSearch(View arg0, int arg1)
void layout(int arg0, int arg1, int arg2, int arg3)
final void measure(int arg0, int arg1)
static int[] mergeDrawableStates(int[] arg0, int[] arg1)
void offsetLeftAndRight(int arg0)
void offsetTopAndBottom(int arg0)
void onAnimationEnd()
void onAnimationStart()
WindowInsets onApplyWindowInsets(WindowInsets arg0)
void onAttachedToWindow()
void onCancelPendingInputEvents()
boolean onCapturedPointerEvent(MotionEvent arg0)
boolean onCheckIsTextEditor()
void onConfigurationChanged(Configuration arg0)
void onCreateContextMenu(ContextMenu arg0)
int[] onCreateDrawableState(int arg0)
InputConnection onCreateInputConnection(EditorInfo arg0)
void onCreateViewTranslationRequest(int[] arg0, Consumer<ViewTranslationRequest> arg1)
void onCreateVirtualViewTranslationRequests(long[] arg0, int[] arg1, Consumer<ViewTranslationRequest> arg2)
void onDetachedFromWindow()
void onDisplayHint(int arg0)
boolean onDragEvent(DragEvent arg0)
void onDraw(Canvas arg0)
void onDrawForeground(Canvas arg0)
final void onDrawScrollBars(Canvas arg0)
boolean onFilterTouchEventForSecurity(MotionEvent arg0)
void onFinishInflate()
void onFinishTemporaryDetach()
void onFocusChanged(boolean arg0, int arg1, Rect arg2)
boolean onGenericMotionEvent(MotionEvent arg0)
void onHoverChanged(boolean arg0)
boolean onHoverEvent(MotionEvent arg0)
void onInitializeAccessibilityEvent(AccessibilityEvent arg0)
void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo arg0)
boolean onKeyDown(int arg0, KeyEvent arg1)
boolean onKeyLongPress(int arg0, KeyEvent arg1)
boolean onKeyMultiple(int arg0, int arg1, KeyEvent arg2)
boolean onKeyPreIme(int arg0, KeyEvent arg1)
boolean onKeyShortcut(int arg0, KeyEvent arg1)
boolean onKeyUp(int arg0, KeyEvent arg1)
void onLayout(boolean arg0, int arg1, int arg2, int arg3, int arg4)
void onMeasure(int arg0, int arg1)
void onOverScrolled(int arg0, int arg1, boolean arg2, boolean arg3)
void onPointerCaptureChange(boolean arg0)
void onPopulateAccessibilityEvent(AccessibilityEvent arg0)
void onProvideAutofillStructure(ViewStructure arg0, int arg1)
void onProvideAutofillVirtualStructure(ViewStructure arg0, int arg1)
void onProvideContentCaptureStructure(ViewStructure arg0, int arg1)
void onProvideStructure(ViewStructure arg0)
void onProvideVirtualStructure(ViewStructure arg0)
ContentInfo onReceiveContent(ContentInfo arg0)
PointerIcon onResolvePointerIcon(MotionEvent arg0, int arg1)
void onRestoreInstanceState(Parcelable arg0)
void onRtlPropertiesChanged(int arg0)
Parcelable onSaveInstanceState()
void onScreenStateChanged(int arg0)
void onScrollCaptureSearch(Rect arg0, Point arg1, Consumer<ScrollCaptureTarget> arg2)
void onScrollChanged(int arg0, int arg1, int arg2, int arg3)
boolean onSetAlpha(int arg0)
void onSizeChanged(int arg0, int arg1, int arg2, int arg3)
void onStartTemporaryDetach()
boolean onTouchEvent(MotionEvent arg0)
boolean onTrackballEvent(MotionEvent arg0)
void onViewTranslationResponse(ViewTranslationResponse arg0)
void onVirtualViewTranslationResponses(LongSparseArray<ViewTranslationResponse> arg0)
void onVisibilityAggregated(boolean arg0)
void onVisibilityChanged(View arg0, int arg1)
void onWindowFocusChanged(boolean arg0)
void onWindowSystemUiVisibilityChanged(int arg0)
void onWindowVisibilityChanged(int arg0)
boolean overScrollBy(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, boolean arg8)
boolean performAccessibilityAction(int arg0, Bundle arg1)
boolean performClick()
boolean performContextClick(float arg0, float arg1)
boolean performContextClick()
boolean performHapticFeedback(int arg0)
boolean performHapticFeedback(int arg0, int arg1)
boolean performLongClick(float arg0, float arg1)
boolean performLongClick()
ContentInfo performReceiveContent(ContentInfo arg0)
void playSoundEffect(int arg0)
boolean post(Runnable arg0)
boolean postDelayed(Runnable arg0, long arg1)
void postInvalidate()
void postInvalidate(int arg0, int arg1, int arg2, int arg3)
void postInvalidateDelayed(long arg0, int arg1, int arg2, int arg3, int arg4)
void postInvalidateDelayed(long arg0)
void postInvalidateOnAnimation(int arg0, int arg1, int arg2, int arg3)
void postInvalidateOnAnimation()
void postOnAnimation(Runnable arg0)
void postOnAnimationDelayed(Runnable arg0, long arg1)
void refreshDrawableState()
void releasePointerCapture()
boolean removeCallbacks(Runnable arg0)
void removeOnAttachStateChangeListener(View.OnAttachStateChangeListener arg0)
void removeOnLayoutChangeListener(View.OnLayoutChangeListener arg0)
void removeOnUnhandledKeyEventListener(View.OnUnhandledKeyEventListener arg0)
void requestApplyInsets()
void requestFitSystemWindows()
final boolean requestFocus(int arg0)
final boolean requestFocus()
boolean requestFocus(int arg0, Rect arg1)
final boolean requestFocusFromTouch()
void requestLayout()
void requestPointerCapture()
boolean requestRectangleOnScreen(Rect arg0)
boolean requestRectangleOnScreen(Rect arg0, boolean arg1)
final void requestUnbufferedDispatch(int arg0)
final void requestUnbufferedDispatch(MotionEvent arg0)
final <T extends View> T requireViewById(int arg0)
void resetPivot()
static int resolveSize(int arg0, int arg1)
static int resolveSizeAndState(int arg0, int arg1, int arg2)
boolean restoreDefaultFocus()
void restoreHierarchyState(SparseArray<Parcelable> arg0)
final void saveAttributeDataForStyleable(Context arg0, int[] arg1, AttributeSet arg2, TypedArray arg3, int arg4, int arg5)
void saveHierarchyState(SparseArray<Parcelable> arg0)
void scheduleDrawable(Drawable arg0, Runnable arg1, long arg2)
void scrollBy(int arg0, int arg1)
void scrollTo(int arg0, int arg1)
void sendAccessibilityEvent(int arg0)
void sendAccessibilityEventUnchecked(AccessibilityEvent arg0)
void setAccessibilityDataSensitive(int arg0)
void setAccessibilityDelegate(View.AccessibilityDelegate arg0)
void setAccessibilityHeading(boolean arg0)
void setAccessibilityLiveRegion(int arg0)
void setAccessibilityPaneTitle(CharSequence arg0)
void setAccessibilityTraversalAfter(int arg0)
void setAccessibilityTraversalBefore(int arg0)
void setActivated(boolean arg0)
void setAllowClickWhenDisabled(boolean arg0)
void setAllowedHandwritingDelegatePackage(String arg0)
void setAllowedHandwritingDelegatorPackage(String arg0)
void setAlpha(float arg0)
void setAnimation(Animation arg0)
void setAnimationMatrix(Matrix arg0)
void setAutoHandwritingEnabled(boolean arg0)
void setAutofillHints(String... arg0)
void setAutofillId(AutofillId arg0)
void setBackground(Drawable arg0)
void setBackgroundColor(int arg0)
void setBackgroundDrawable(Drawable arg0)
void setBackgroundResource(int arg0)
void setBackgroundTintBlendMode(BlendMode arg0)
void setBackgroundTintList(ColorStateList arg0)
void setBackgroundTintMode(PorterDuff.Mode arg0)
final void setBottom(int arg0)
void setCameraDistance(float arg0)
void setClickable(boolean arg0)
void setClipBounds(Rect arg0)
void setClipToOutline(boolean arg0)
void setContentCaptureSession(ContentCaptureSession arg0)
void setContentDescription(CharSequence arg0)
void setContextClickable(boolean arg0)
void setDefaultFocusHighlightEnabled(boolean arg0)
void setDrawingCacheBackgroundColor(int arg0)
void setDrawingCacheEnabled(boolean arg0)
void setDrawingCacheQuality(int arg0)
void setDuplicateParentStateEnabled(boolean arg0)
void setElevation(float arg0)
void setEnabled(boolean arg0)
void setFadingEdgeLength(int arg0)
void setFilterTouchesWhenObscured(boolean arg0)
void setFitsSystemWindows(boolean arg0)
void setFocusable(boolean arg0)
void setFocusable(int arg0)
void setFocusableInTouchMode(boolean arg0)
void setFocusedByDefault(boolean arg0)
void setForceDarkAllowed(boolean arg0)
void setForeground(Drawable arg0)
void setForegroundGravity(int arg0)
void setForegroundTintBlendMode(BlendMode arg0)
void setForegroundTintList(ColorStateList arg0)
void setForegroundTintMode(PorterDuff.Mode arg0)
void setHandwritingBoundsOffsets(float arg0, float arg1, float arg2, float arg3)
void setHandwritingDelegatorCallback(Runnable arg0)
void setHapticFeedbackEnabled(boolean arg0)
void setHasTransientState(boolean arg0)
void setHorizontalFadingEdgeEnabled(boolean arg0)
void setHorizontalScrollBarEnabled(boolean arg0)
void setHorizontalScrollbarThumbDrawable(Drawable arg0)
void setHorizontalScrollbarTrackDrawable(Drawable arg0)
void setHovered(boolean arg0)
void setId(int arg0)
void setImportantForAccessibility(int arg0)
void setImportantForAutofill(int arg0)
void setImportantForContentCapture(int arg0)
void setIsCredential(boolean arg0)
void setIsHandwritingDelegate(boolean arg0)
void setKeepScreenOn(boolean arg0)
void setKeyboardNavigationCluster(boolean arg0)
void setLabelFor(int arg0)
void setLayerPaint(Paint arg0)
void setLayerType(int arg0, Paint arg1)
void setLayoutDirection(int arg0)
void setLayoutParams(ViewGroup.LayoutParams arg0)
final void setLeft(int arg0)
final void setLeftTopRightBottom(int arg0, int arg1, int arg2, int arg3)
void setLongClickable(boolean arg0)
final void setMeasuredDimension(int arg0, int arg1)
void setMinimumHeight(int arg0)
void setMinimumWidth(int arg0)
void setNestedScrollingEnabled(boolean arg0)
void setNextClusterForwardId(int arg0)
void setNextFocusDownId(int arg0)
void setNextFocusForwardId(int arg0)
void setNextFocusLeftId(int arg0)
void setNextFocusRightId(int arg0)
void setNextFocusUpId(int arg0)
void setOnApplyWindowInsetsListener(View.OnApplyWindowInsetsListener arg0)
void setOnCapturedPointerListener(View.OnCapturedPointerListener arg0)
void setOnClickListener(View.OnClickListener arg0)
void setOnContextClickListener(View.OnContextClickListener arg0)
void setOnCreateContextMenuListener(View.OnCreateContextMenuListener arg0)
void setOnDragListener(View.OnDragListener arg0)
void setOnFocusChangeListener(View.OnFocusChangeListener arg0)
void setOnGenericMotionListener(View.OnGenericMotionListener arg0)
void setOnHoverListener(View.OnHoverListener arg0)
void setOnKeyListener(View.OnKeyListener arg0)
void setOnLongClickListener(View.OnLongClickListener arg0)
void setOnReceiveContentListener(String[] arg0, OnReceiveContentListener arg1)
void setOnScrollChangeListener(View.OnScrollChangeListener arg0)
void setOnSystemUiVisibilityChangeListener(View.OnSystemUiVisibilityChangeListener arg0)
void setOnTouchListener(View.OnTouchListener arg0)
void setOutlineAmbientShadowColor(int arg0)
void setOutlineProvider(ViewOutlineProvider arg0)
void setOutlineSpotShadowColor(int arg0)
void setOverScrollMode(int arg0)
void setPadding(int arg0, int arg1, int arg2, int arg3)
void setPaddingRelative(int arg0, int arg1, int arg2, int arg3)
void setPivotX(float arg0)
void setPivotY(float arg0)
void setPointerIcon(PointerIcon arg0)
final void setPreferKeepClear(boolean arg0)
final void setPreferKeepClearRects(List<Rect> arg0)
void setPressed(boolean arg0)
void setRenderEffect(RenderEffect arg0)
final void setRevealOnFocusHint(boolean arg0)
final void setRight(int arg0)
void setRotation(float arg0)
void setRotationX(float arg0)
void setRotationY(float arg0)
void setSaveEnabled(boolean arg0)
void setSaveFromParentEnabled(boolean arg0)
void setScaleX(float arg0)
void setScaleY(float arg0)
void setScreenReaderFocusable(boolean arg0)
void setScrollBarDefaultDelayBeforeFade(int arg0)
void setScrollBarFadeDuration(int arg0)
void setScrollBarSize(int arg0)
void setScrollBarStyle(int arg0)
final void setScrollCaptureCallback(ScrollCaptureCallback arg0)
void setScrollCaptureHint(int arg0)
void setScrollContainer(boolean arg0)
void setScrollIndicators(int arg0, int arg1)
void setScrollIndicators(int arg0)
void setScrollX(int arg0)
void setScrollY(int arg0)
void setScrollbarFadingEnabled(boolean arg0)
void setSelected(boolean arg0)
void setSoundEffectsEnabled(boolean arg0)
void setStateDescription(CharSequence arg0)
void setStateListAnimator(StateListAnimator arg0)
void setSystemGestureExclusionRects(List<Rect> arg0)
void setSystemUiVisibility(int arg0)
void setTag(int arg0, Object arg1)
void setTag(Object arg0)
void setTextAlignment(int arg0)
void setTextDirection(int arg0)
void setTooltipText(CharSequence arg0)
final void setTop(int arg0)
void setTouchDelegate(TouchDelegate arg0)
void setTransitionAlpha(float arg0)
final void setTransitionName(String arg0)
void setTransitionVisibility(int arg0)
void setTranslationX(float arg0)
void setTranslationY(float arg0)
void setTranslationZ(float arg0)
void setVerticalFadingEdgeEnabled(boolean arg0)
void setVerticalScrollBarEnabled(boolean arg0)
void setVerticalScrollbarPosition(int arg0)
void setVerticalScrollbarThumbDrawable(Drawable arg0)
void setVerticalScrollbarTrackDrawable(Drawable arg0)
void setViewTranslationCallback(ViewTranslationCallback arg0)
void setVisibility(int arg0)
void setWillNotCacheDrawing(boolean arg0)
void setWillNotDraw(boolean arg0)
void setWindowInsetsAnimationCallback(WindowInsetsAnimation.Callback arg0)
void setX(float arg0)
void setY(float arg0)
void setZ(float arg0)
boolean showContextMenu()
boolean showContextMenu(float arg0, float arg1)
ActionMode startActionMode(ActionMode.Callback arg0, int arg1)
ActionMode startActionMode(ActionMode.Callback arg0)
void startAnimation(Animation arg0)
final boolean startDrag(ClipData arg0, View.DragShadowBuilder arg1, Object arg2, int arg3)
final boolean startDragAndDrop(ClipData arg0, View.DragShadowBuilder arg1, Object arg2, int arg3)
boolean startNestedScroll(int arg0)
void stopNestedScroll()
String toString()
void transformMatrixToGlobal(Matrix arg0)
void transformMatrixToLocal(Matrix arg0)
void unscheduleDrawable(Drawable arg0, Runnable arg1)
void unscheduleDrawable(Drawable arg0)
final void updateDragShadow(View.DragShadowBuilder arg0)
boolean verifyDrawable(Drawable arg0)
boolean willNotCacheDrawing()
boolean willNotDraw()
Object clone()
boolean equals(Object arg0)
void finalize()
final Class<?> getClass()
int hashCode()
final void notify()
final void notifyAll()
String toString()
final void wait(long arg0, int arg1)
final void wait(long arg0)
final void wait()
abstract void invalidateDrawable(Drawable arg0)
abstract void scheduleDrawable(Drawable arg0, Runnable arg1, long arg2)
abstract void unscheduleDrawable(Drawable arg0, Runnable arg1)
abstract boolean onKeyDown(int arg0, KeyEvent arg1)
abstract boolean onKeyLongPress(int arg0, KeyEvent arg1)
abstract boolean onKeyMultiple(int arg0, int arg1, KeyEvent arg2)
abstract boolean onKeyUp(int arg0, KeyEvent arg1)
abstract void sendAccessibilityEvent(int arg0)
abstract void sendAccessibilityEventUnchecked(AccessibilityEvent arg0)

XML attributes

Slider_android_stepSize

Related methods:

Slider_android_value

Related methods:

Slider_android_valueFrom

Related methods:

Slider_android_valueTo

Related methods:

Slider_haloColor

Related methods:

Slider_haloRadius

Related methods:

Slider_labelBehavior

Related methods:

Slider_thumbColor

Related methods:

Slider_thumbElevation

Related methods:

Slider_thumbHeight

Related methods:

Slider_thumbRadius

Related methods:

Slider_thumbStrokeColor

Related methods:

Slider_thumbStrokeWidth

Related methods:

Slider_thumbTrackGapSize

Related methods:

Slider_thumbWidth

Related methods:

Slider_tickColor

Related methods:

Slider_tickColorActive

Related methods:

Slider_tickColorInactive

Related methods:

Slider_tickVisible

Related methods:

Slider_trackColor

Related methods:

Slider_trackColorActive

Related methods:

Slider_trackColorInactive

Related methods:

Slider_trackHeight

Related methods:

Slider_trackInsideCornerSize

Related methods:

Slider_trackStopIndicatorSize

Related methods:

Public constructors

Slider

public Slider (Context context)

Parameters
context Context

Slider

public Slider (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

Slider

public Slider (Context context, 
                AttributeSet attrs, 
                int defStyleAttr)

Parameters
context Context

attrs AttributeSet

defStyleAttr int

Public methods

addOnChangeListener

public void addOnChangeListener (L listener)

Registers a callback to be invoked when the slider changes. On the RangeSlider implementation, the listener is invoked once for each value.

Parameters
listener L: The callback to run when the slider changes

addOnSliderTouchListener

public void addOnSliderTouchListener (T listener)

Registers a callback to be invoked when the slider touch event is being started or stopped

Parameters
listener T: The callback to run when the slider starts or stops being touched

clearOnChangeListeners

public void clearOnChangeListeners ()

Removes all instances of attached to this slider

clearOnSliderTouchListeners

public void clearOnSliderTouchListeners ()

Removes all instances of touch listeners attached to this slider

dispatchHoverEvent

public boolean dispatchHoverEvent (MotionEvent event)

Parameters
event MotionEvent

Returns
boolean

dispatchKeyEvent

public boolean dispatchKeyEvent (KeyEvent event)

Parameters
event KeyEvent

Returns
boolean

getAccessibilityClassName

public CharSequence getAccessibilityClassName ()

Returns
CharSequence

getActiveThumbIndex

public int getActiveThumbIndex ()

Returns the index of the currently active thumb, or -1 if no thumb is active

Returns
int

getFocusedThumbIndex

public int getFocusedThumbIndex ()

Returns the index of the currently focused thumb

Returns
int

getHaloRadius

public int getHaloRadius ()

Returns the radius of the halo.

Related XML Attributes:

Returns
int

getHaloTintList

public ColorStateList getHaloTintList ()

Returns the color of the halo.

Related XML Attributes:

Returns
ColorStateList

getLabelBehavior

public int getLabelBehavior ()

Returns the ERROR(/LabelBehavior) used.

Related XML Attributes:

Returns
int

getStepSize

public float getStepSize ()

Returns the step size used to mark the ticks.

A step size of 0 means that the slider is operating in continuous mode. A step size greater than 0 means that the slider is operating in discrete mode.

Related XML Attributes:

Returns
float

See also:

getThumbElevation

public float getThumbElevation ()

Returns the elevation of the thumb.

Related XML Attributes:

Returns
float

getThumbHeight

public int getThumbHeight ()

Returns the height of the thumb. Note that setting this will also affect custom drawables set through setCustomThumbDrawable(int), setCustomThumbDrawable(Drawable), ERROR(/#setCustomThumbDrawablesForValues(int...)), and ERROR(/#setCustomThumbDrawablesForValues(Drawable...)).

Related XML Attributes:

Returns
int

getThumbRadius

public int getThumbRadius ()

Returns the radius of the thumb. Note that setting this will also affect custom drawables set through setCustomThumbDrawable(int), setCustomThumbDrawable(Drawable), ERROR(/#setCustomThumbDrawablesForValues(int...)), and ERROR(/#setCustomThumbDrawablesForValues(Drawable...)).

Related XML Attributes:

Returns
int

getThumbStrokeColor

public ColorStateList getThumbStrokeColor ()

Gets the stroke color for the thumb.

Related XML Attributes:

Returns
ColorStateList The color used for the stroke in the thumb.

getThumbStrokeWidth

public float getThumbStrokeWidth ()

Gets the stroke width for the thumb

Related XML Attributes:

Returns
float Stroke width for the thumb.

getThumbTintList

public ColorStateList getThumbTintList ()

Returns the color of the thumb.

Related XML Attributes:

Returns
ColorStateList

getThumbTrackGapSize

public int getThumbTrackGapSize ()

Returns the size of the gap between the thumb and the track.

Related XML Attributes:

Returns
int

getThumbWidth

public int getThumbWidth ()

Returns the width of the thumb. Note that setting this will also affect custom drawables set through setCustomThumbDrawable(int), setCustomThumbDrawable(Drawable), ERROR(/#setCustomThumbDrawablesForValues(int...)), and ERROR(/#setCustomThumbDrawablesForValues(Drawable...)).

Related XML Attributes:

Returns
int

getTickActiveRadius

public int getTickActiveRadius ()

Returns the radius of the active tick in pixels.

Returns
int

getTickActiveTintList

public ColorStateList getTickActiveTintList ()

Returns the color of the ticks on the active portion of the track.

Related XML Attributes:

Returns
ColorStateList

getTickInactiveRadius

public int getTickInactiveRadius ()

Returns the radius of the inactive tick in pixels.

Returns
int

getTickInactiveTintList

public ColorStateList getTickInactiveTintList ()

Returns the color of the ticks on the inactive portion of the track.

Related XML Attributes:

Returns
ColorStateList

getTickTintList

public ColorStateList getTickTintList ()

Returns the color of the tick if the active and inactive parts aren't different.

Related XML Attributes:

Returns
ColorStateList

Throws
IllegalStateException If tickColorActive and tickColorInactive have been set to different values.

getTrackActiveTintList

public ColorStateList getTrackActiveTintList ()

Returns the color of the active portion of the track.

Related XML Attributes:

Returns
ColorStateList

getTrackHeight

public int getTrackHeight ()

Returns the height of the track in pixels.

Related XML Attributes:

Returns
int

getTrackInactiveTintList

public ColorStateList getTrackInactiveTintList ()

Returns the color of the inactive portion of the track.

Related XML Attributes:

Returns
ColorStateList

getTrackInsideCornerSize

public int getTrackInsideCornerSize ()

Returns the corner size on the inside of the track (visible with gap).

Related XML Attributes:

Returns
int

getTrackSidePadding

public int getTrackSidePadding ()

Returns the side padding of the track.

Returns
int

getTrackStopIndicatorSize

public int getTrackStopIndicatorSize ()

Returns the size of the stop indicator at the edges of the track.

Related XML Attributes:

Returns
int

getTrackTintList

public ColorStateList getTrackTintList ()

Returns the color of the track if the active and inactive parts aren't different.

Related XML Attributes:

Returns
ColorStateList

Throws
IllegalStateException If trackColorActive and trackColorInactive have been set to different values.

getTrackWidth

public int getTrackWidth ()

Returns the width of the track in pixels.

Returns
int

getValue

public float getValue ()

Returns the value of the slider.

Related XML Attributes:

Returns
float

See also:

getValueFrom

public float getValueFrom ()

Returns the slider's valueFrom value.

Related XML Attributes:

Returns
float

getValueTo

public float getValueTo ()

Returns the slider's valueTo value.

Related XML Attributes:

Returns
float

See also:

hasLabelFormatter

public boolean hasLabelFormatter ()

Returns true if the slider has a LabelFormatter attached, false otherwise.

Returns
boolean

isTickVisible

public boolean isTickVisible ()

Returns whether the tick marks are visible. Only used when the slider is in discrete mode.

Related XML Attributes:

Returns
boolean

onKeyDown

public boolean onKeyDown (int keyCode, 
                KeyEvent event)

Parameters
keyCode int

event KeyEvent

Returns
boolean

onKeyUp

public boolean onKeyUp (int keyCode, 
                KeyEvent event)

Parameters
keyCode int

event KeyEvent

Returns
boolean

onTouchEvent

public boolean onTouchEvent (MotionEvent event)

Parameters
event MotionEvent

Returns
boolean

removeOnChangeListener

public void removeOnChangeListener (L listener)

Removes a callback for value changes from this slider.

Parameters
listener L: The callback that'll stop receive slider changes

removeOnSliderTouchListener

public void removeOnSliderTouchListener (T listener)

Removes a callback to be invoked when the slider touch event is being started or stopped

Parameters
listener T: The callback that'll stop be notified when the slider is being touched

setCustomThumbDrawable

public void setCustomThumbDrawable (Drawable drawable)

Sets the custom thumb drawable which will be used for all value positions. Note that the custom drawable provided will be resized to match the thumb radius set by setThumbRadius(int) or setThumbRadiusResource(int). Be aware that the image quality may be compromised during resizing.

Parameters
drawable Drawable

setCustomThumbDrawable

public void setCustomThumbDrawable (int drawableResId)

Sets the custom thumb drawable which will be used for all value positions. Note that the custom drawable provided will be resized to match the thumb radius set by setThumbRadius(int) or setThumbRadiusResource(int). Be aware that the image quality may be compromised during resizing.

Parameters
drawableResId int

setEnabled

public void setEnabled (boolean enabled)

Parameters
enabled boolean

setFocusedThumbIndex

public void setFocusedThumbIndex (int index)

Sets the index of the currently focused thumb

Parameters
index int

setHaloRadius

public void setHaloRadius (int radius)

Sets the radius of the halo in pixels.

Related XML Attributes:

Parameters
radius int

See also:

setHaloRadiusResource

public void setHaloRadiusResource (int radius)

Sets the radius of the halo from a dimension resource.

Related XML Attributes:

Parameters
radius int

See also:

setHaloTintList

public void setHaloTintList (ColorStateList haloColor)

Sets the color of the halo.

Related XML Attributes:

Parameters
haloColor ColorStateList

See also:

setLabelBehavior

public void setLabelBehavior (int labelBehavior)

Determines the ERROR(/LabelBehavior) used.

Related XML Attributes:

Parameters
labelBehavior int

setLabelFormatter

public void setLabelFormatter (LabelFormatter formatter)

Registers a LabelFormatter to be used to format the value displayed in the bubble shown when the slider operates in discrete mode.

Parameters
formatter LabelFormatter: The LabelFormatter to use to format the bubble's text

setStepSize

public void setStepSize (float stepSize)

Sets the step size to use to mark the ticks.

Setting this value to 0 will make the slider operate in continuous mode. Setting this value to a number greater than 0 will make the slider operate in discrete mode.

The step size must evenly divide the range described by the valueFrom and valueTo, it must be a factor of the range. If the step size is not a factor of the range, an IllegalStateException will be thrown when this view is laid out.

Setting this value to a negative value will result in an IllegalArgumentException.

Related XML Attributes:

Parameters
stepSize float: The interval value at which ticks must be drawn. Set to 0 to operate the slider in continuous mode and not have any ticks.

Throws
IllegalArgumentException If the step size is less than 0

See also:

setThumbElevation

public void setThumbElevation (float elevation)

Sets the elevation of the thumb.

Related XML Attributes:

Parameters
elevation float

setThumbElevationResource

public void setThumbElevationResource (int elevation)

Sets the elevation of the thumb from a dimension resource.

Related XML Attributes:

Parameters
elevation int

setThumbHeight

public void setThumbHeight (int height)

Sets the height of the thumb in pixels. Note that setting this will also affect custom drawables set through setCustomThumbDrawable(int), setCustomThumbDrawable(Drawable), ERROR(/#setCustomThumbDrawablesForValues(int...)), and ERROR(/#setCustomThumbDrawablesForValues(Drawable...)).

Related XML Attributes:

Parameters
height int

See also:

setThumbHeightResource

public void setThumbHeightResource (int height)

Sets the height of the thumb from a dimension resource. Note that setting this will also affect custom drawables set through setCustomThumbDrawable(int), setCustomThumbDrawable(Drawable), ERROR(/#setCustomThumbDrawablesForValues(int...)), and ERROR(/#setCustomThumbDrawablesForValues(Drawable...)).

Related XML Attributes:

Parameters
height int

See also:

setThumbRadius

public void setThumbRadius (int radius)

Sets the radius of the thumb in pixels. Note that setting this will also affect custom drawables set through setCustomThumbDrawable(int), setCustomThumbDrawable(Drawable), ERROR(/#setCustomThumbDrawablesForValues(int...)), and ERROR(/#setCustomThumbDrawablesForValues(Drawable...)).

Related XML Attributes:

Parameters
radius int

See also:

setThumbRadiusResource

public void setThumbRadiusResource (int radius)

Sets the radius of the thumb from a dimension resource. Note that setting this will also affect custom drawables set through setCustomThumbDrawable(int), setCustomThumbDrawable(Drawable), ERROR(/#setCustomThumbDrawablesForValues(int...)), and ERROR(/#setCustomThumbDrawablesForValues(Drawable...)).

Related XML Attributes:

Parameters
radius int

See also:

setThumbStrokeColor

public void setThumbStrokeColor (ColorStateList thumbStrokeColor)

Sets the stroke color for the thumbs. Both thumbStroke color and thumbStroke width must be set for a stroke to be drawn.

Related XML Attributes:

Parameters
thumbStrokeColor ColorStateList: Color to use for the stroke in the thumbs.

setThumbStrokeColorResource

public void setThumbStrokeColorResource (int thumbStrokeColorResourceId)

Sets the stroke color resource for the thumbs. Both thumbStroke color and thumbStroke width must be set for a stroke to be drawn.

Related XML Attributes:

Parameters
thumbStrokeColorResourceId int: Color resource to use for the stroke.

setThumbStrokeWidth

public void setThumbStrokeWidth (float thumbStrokeWidth)

Sets the stroke width for the thumb. Both thumbStroke color and thumbStroke width must be set for a stroke to be drawn.

Related XML Attributes:

Parameters
thumbStrokeWidth float: Stroke width for the thumb

setThumbStrokeWidthResource

public void setThumbStrokeWidthResource (int thumbStrokeWidthResourceId)

Sets the stroke width dimension resource for the thumb.Both thumbStroke color and thumbStroke width must be set for a stroke to be drawn.

Related XML Attributes:

Parameters
thumbStrokeWidthResourceId int: Stroke width dimension resource for the thumb

setThumbTintList

public void setThumbTintList (ColorStateList thumbColor)

Sets the color of the thumb.

Related XML Attributes:

Parameters
thumbColor ColorStateList

See also:

setThumbTrackGapSize

public void setThumbTrackGapSize (int thumbTrackGapSize)

Sets the size of the gap between the thumb and the track.

Related XML Attributes:

Parameters
thumbTrackGapSize int

setThumbWidth

public void setThumbWidth (int width)

Sets the width of the thumb in pixels. Note that setting this will also affect custom drawables set through setCustomThumbDrawable(int), setCustomThumbDrawable(Drawable), ERROR(/#setCustomThumbDrawablesForValues(int...)), and ERROR(/#setCustomThumbDrawablesForValues(Drawable...)).

Related XML Attributes:

Parameters
width int

See also:

setThumbWidthResource

public void setThumbWidthResource (int width)

Sets the width of the thumb from a dimension resource. Note that setting this will also affect custom drawables set through setCustomThumbDrawable(int), setCustomThumbDrawable(Drawable), ERROR(/#setCustomThumbDrawablesForValues(int...)), and ERROR(/#setCustomThumbDrawablesForValues(Drawable...)).

Related XML Attributes:

Parameters
width int

See also:

setTickActiveRadius

public void setTickActiveRadius (int tickActiveRadius)

Set the radius of the active tick in pixels.

Parameters
tickActiveRadius int

setTickActiveTintList

public void setTickActiveTintList (ColorStateList tickColor)

Sets the color of the ticks on the active portion of the track.

Related XML Attributes:

Parameters
tickColor ColorStateList

setTickInactiveRadius

public void setTickInactiveRadius (int tickInactiveRadius)

Set the radius of the inactive tick in pixels.

Parameters
tickInactiveRadius int

setTickInactiveTintList

public void setTickInactiveTintList (ColorStateList tickColor)

Sets the color of the ticks on the inactive portion of the track.

Related XML Attributes:

Parameters
tickColor ColorStateList

setTickTintList

public void setTickTintList (ColorStateList tickColor)

Sets the color of the tick marks.

Related XML Attributes:

Parameters
tickColor ColorStateList

setTickVisible

public void setTickVisible (boolean tickVisible)

Sets whether the tick marks are visible. Only used when the slider is in discrete mode.

Related XML Attributes:

Parameters
tickVisible boolean: The visibility of tick marks.

setTrackActiveTintList

public void setTrackActiveTintList (ColorStateList trackColor)

Sets the color of the active portion of the track.

Related XML Attributes:

Parameters
trackColor ColorStateList

setTrackHeight

public void setTrackHeight (int trackHeight)

Set the height of the track in pixels.

Related XML Attributes:

Parameters
trackHeight int

See also:

setTrackInactiveTintList

public void setTrackInactiveTintList (ColorStateList trackColor)

Sets the color of the inactive portion of the track.

Related XML Attributes:

Parameters
trackColor ColorStateList

setTrackInsideCornerSize

public void setTrackInsideCornerSize (int cornerSize)

Sets the corner size on the inside of the track (visible with gap).

Related XML Attributes:

Parameters
cornerSize int

setTrackStopIndicatorSize

public void setTrackStopIndicatorSize (int trackStopIndicatorSize)

Sets the size of the stop indicator at the edges of the track.

Related XML Attributes:

Parameters
trackStopIndicatorSize int

setTrackTintList

public void setTrackTintList (ColorStateList trackColor)

Sets the color of the track.

Related XML Attributes:

Parameters
trackColor ColorStateList

setValue

public void setValue (float value)

Sets the value of the slider.

The thumb value must be greater or equal to valueFrom, and lesser or equal to valueTo. If that is not the case, an IllegalStateException will be thrown when the view is laid out.

If the slider is in discrete mode (i.e. the tick increment value is greater than 0), the thumb's value must be set to a value falls on a tick (i.e.: value == valueFrom + x * stepSize, where x is an integer equal to or greater than 0). If that is not the case, an IllegalStateException will be thrown when the view is laid out.

Related XML Attributes:

Parameters
value float: The value to which to set the slider

See also:

setValueFrom

public void setValueFrom (float valueFrom)

Sets the slider's valueFrom value.

The valueFrom value must be strictly lower than the valueTo value. If that is not the case, an IllegalStateException will be thrown when the view is laid out.

Related XML Attributes:

Parameters
valueFrom float: The minimum value for the slider's range of values

See also:

setValueTo

public void setValueTo (float valueTo)

Sets the slider's valueTo value.

The valueTo value must be strictly greater than the valueFrom value. If that is not the case, an IllegalStateException will be thrown when the view is laid out.

Related XML Attributes:

Parameters
valueTo float: The maximum value for the slider's range of values

See also:

Protected methods

drawableStateChanged

protected void drawableStateChanged ()

getMinSeparation

protected float getMinSeparation ()

Returns
float

onAttachedToWindow

protected void onAttachedToWindow ()

onDetachedFromWindow

protected void onDetachedFromWindow ()

onDraw

protected void onDraw (Canvas canvas)

Parameters
canvas Canvas

onFocusChanged

protected void onFocusChanged (boolean gainFocus, 
                int direction, 
                Rect previouslyFocusedRect)

Parameters
gainFocus boolean

direction int

previouslyFocusedRect Rect

onMeasure

protected void onMeasure (int widthMeasureSpec, 
                int heightMeasureSpec)

Parameters
widthMeasureSpec int

heightMeasureSpec int

onRestoreInstanceState

protected void onRestoreInstanceState (Parcelable state)

Parameters
state Parcelable

onSaveInstanceState

protected Parcelable onSaveInstanceState ()

Returns
Parcelable

onSizeChanged

protected void onSizeChanged (int w, 
                int h, 
                int oldw, 
                int oldh)

Parameters
w int

h int

oldw int

oldh int

onVisibilityChanged

protected void onVisibilityChanged (View changedView, 
                int visibility)

Parameters
changedView View

visibility int

pickActiveThumb

protected boolean pickActiveThumb ()

Tries to pick the active thumb if one hasn't already been set. This will pick the closest thumb if there is only one thumb under the touch position. If there is more than one thumb under the touch position, it will wait for enough drag left or right to determine which thumb to pick.

Returns
boolean

setActiveThumbIndex

protected void setActiveThumbIndex (int index)

Parameters
index int

setSeparationUnit

protected void setSeparationUnit (int separationUnit)

Parameters
separationUnit int