Carousel

open class Carousel : EpoxyRecyclerView

This feature is in Beta - please report bugs, feature requests, or other feedback at https://github.com/airbnb/epoxy by creating a new issue. Thanks!

This is intended as a plug and play "Carousel" view - a Recyclerview with horizontal scrolling. It comes with common defaults and performance optimizations and can be either used as a top level RecyclerView, or nested within a vertical recyclerview.

This class provides:

1. Automatic integration with Epoxy. A CarouselModel_ is generated from this class, which you can use in your EpoxyController. Just call setModels to provide the list of models to show in the carousel.

2. Default padding for carousel peeking, and an easy way to change this padding -

3. Easily control how many items are shown on screen in the carousel at a time -

4. Easy snap support. By default a LinearSnapHelper is used, but you can set a global default for all Carousels with setDefaultGlobalSnapHelperFactory

5. All of the benefits of EpoxyRecyclerView

If you need further flexibility you can subclass this view to change its width, height, scrolling direction, etc. You can annotate a subclass with ModelView to generate a new EpoxyModel.

Constructors

Carousel
Link copied to clipboard
open fun Carousel(context: Context)
Carousel
Link copied to clipboard
open fun Carousel(context: Context, @Nullable() attrs: AttributeSet)
Carousel
Link copied to clipboard
open fun Carousel(context: Context, @Nullable() attrs: AttributeSet, defStyle: Int)

Types

Padding
Link copied to clipboard
open class Padding
Used to specify individual padding values programmatically.
SnapHelperFactory
Link copied to clipboard
abstract class SnapHelperFactory
Provide a SnapHelper implementation you want to use with a Carousel.

Functions

addChildrenForAccessibility
Link copied to clipboard
open fun addChildrenForAccessibility(outChildren: ArrayList<View>)
addExtraDataToAccessibilityNodeInfo
Link copied to clipboard
open fun addExtraDataToAccessibilityNodeInfo(info: AccessibilityNodeInfo, extraDataKey: String, arguments: Bundle)
addFocusables
Link copied to clipboard
open fun addFocusables(views: ArrayList<View>, direction: Int, focusableMode: Int)
addItemDecoration
Link copied to clipboard
open fun addItemDecoration(decor: RecyclerView.ItemDecoration, index: Int)
addKeyboardNavigationClusters
Link copied to clipboard
open fun addKeyboardNavigationClusters(views: Collection<View>, direction: Int)
addOnAttachStateChangeListener
Link copied to clipboard
open fun addOnAttachStateChangeListener(listener: View.OnAttachStateChangeListener)
addOnItemTouchListener
Link copied to clipboard
open fun addOnItemTouchListener(listener: RecyclerView.OnItemTouchListener)
addOnLayoutChangeListener
Link copied to clipboard
open fun addOnLayoutChangeListener(listener: View.OnLayoutChangeListener)
addOnScrollListener
Link copied to clipboard
open fun addOnScrollListener(listener: RecyclerView.OnScrollListener)
addOnUnhandledKeyEventListener
Link copied to clipboard
open fun addOnUnhandledKeyEventListener(listener: View.OnUnhandledKeyEventListener)
addPreloader
Link copied to clipboard
fun <T : EpoxyModel<out Any>?, U : ViewMetadata?, P : PreloadRequestHolder?> addPreloader(maxPreloadDistance: Int, errorHandler: (out Any, out Any) -> Unit, preloader: EpoxyModelPreloader<T, U, P>, requestHolderFactory: () -> out P)
addStatesFromChildren
Link copied to clipboard
open fun addStatesFromChildren(): Boolean
addTouchables
Link copied to clipboard
open fun addTouchables(views: ArrayList<View>)
addView
Link copied to clipboard
open fun addView(child: View)
animate
Link copied to clipboard
open fun animate(): ViewPropertyAnimator
announceForAccessibility
Link copied to clipboard
open fun announceForAccessibility(text: CharSequence)
autofill
Link copied to clipboard
open fun autofill(value: AutofillValue)
bringChildToFront
Link copied to clipboard
open fun bringChildToFront(child: View)
bringToFront
Link copied to clipboard
open fun bringToFront()
buildDrawingCache
Link copied to clipboard
open fun buildDrawingCache()
buildLayer
Link copied to clipboard
open fun buildLayer()
buildModelsWith
Link copied to clipboard
fun buildModelsWith(callback: Null)
callOnClick
Link copied to clipboard
open fun callOnClick(): Boolean
cancelDragAndDrop
Link copied to clipboard
fun cancelDragAndDrop()
cancelLongPress
Link copied to clipboard
open fun cancelLongPress()
cancelPendingInputEvents
Link copied to clipboard
fun cancelPendingInputEvents()
canResolveLayoutDirection
Link copied to clipboard
open fun canResolveLayoutDirection(): Boolean
canResolveTextAlignment
Link copied to clipboard
open fun canResolveTextAlignment(): Boolean
canResolveTextDirection
Link copied to clipboard
open fun canResolveTextDirection(): Boolean
canScrollHorizontally
Link copied to clipboard
open fun canScrollHorizontally(direction: Int): Boolean
canScrollVertically
Link copied to clipboard
open fun canScrollVertically(direction: Int): Boolean
checkInputConnectionProxy
Link copied to clipboard
open fun checkInputConnectionProxy(view: View): Boolean
childDrawableStateChanged
Link copied to clipboard
open fun childDrawableStateChanged(child: View)
childHasTransientStateChanged
Link copied to clipboard
open fun childHasTransientStateChanged(child: View, childHasTransientState: Boolean)
clear
Link copied to clipboard
open fun clear()
open fun clear()
clearAnimation
Link copied to clipboard
open fun clearAnimation()
clearChildFocus
Link copied to clipboard
open fun clearChildFocus(child: View)
clearDisappearingChildren
Link copied to clipboard
open fun clearDisappearingChildren()
clearFocus
Link copied to clipboard
open fun clearFocus()
clearOnChildAttachStateChangeListeners
Link copied to clipboard
open fun clearOnChildAttachStateChangeListeners()
clearOnScrollListeners
Link copied to clipboard
open fun clearOnScrollListeners()
clearPreloaders
Link copied to clipboard
fun clearPreloaders()
combineMeasuredStates
Link copied to clipboard
open fun combineMeasuredStates(curState: Int, newState: Int): Int
computeHorizontalScrollExtent
Link copied to clipboard
open fun computeHorizontalScrollExtent(): Int
computeHorizontalScrollOffset
Link copied to clipboard
open fun computeHorizontalScrollOffset(): Int
computeHorizontalScrollRange
Link copied to clipboard
open fun computeHorizontalScrollRange(): Int
computeScroll
Link copied to clipboard
open fun computeScroll()
computeSystemWindowInsets
Link copied to clipboard
open fun computeSystemWindowInsets(in: WindowInsets, outLocalInsets: Rect): WindowInsets
computeVerticalScrollExtent
Link copied to clipboard
open fun computeVerticalScrollExtent(): Int
computeVerticalScrollOffset
Link copied to clipboard
open fun computeVerticalScrollOffset(): Int
computeVerticalScrollRange
Link copied to clipboard
open fun computeVerticalScrollRange(): Int
createAccessibilityNodeInfo
Link copied to clipboard
open fun createAccessibilityNodeInfo(): AccessibilityNodeInfo
createContextMenu
Link copied to clipboard
open fun createContextMenu(menu: ContextMenu)
destroyDrawingCache
Link copied to clipboard
open fun destroyDrawingCache()
dispatchApplyWindowInsets
Link copied to clipboard
open fun dispatchApplyWindowInsets(insets: WindowInsets): WindowInsets
dispatchCapturedPointerEvent
Link copied to clipboard
open fun dispatchCapturedPointerEvent(event: MotionEvent): Boolean
dispatchConfigurationChanged
Link copied to clipboard
open fun dispatchConfigurationChanged(newConfig: Configuration)
dispatchDisplayHint
Link copied to clipboard
open fun dispatchDisplayHint(hint: Int)
dispatchDragEvent
Link copied to clipboard
open fun dispatchDragEvent(event: DragEvent): Boolean
dispatchDrawableHotspotChanged
Link copied to clipboard
open fun dispatchDrawableHotspotChanged(x: Float, y: Float)
dispatchFinishTemporaryDetach
Link copied to clipboard
open fun dispatchFinishTemporaryDetach()
dispatchGenericMotionEvent
Link copied to clipboard
open fun dispatchGenericMotionEvent(event: MotionEvent): Boolean
dispatchKeyEvent
Link copied to clipboard
open fun dispatchKeyEvent(event: KeyEvent): Boolean
dispatchKeyEventPreIme
Link copied to clipboard
open fun dispatchKeyEventPreIme(event: KeyEvent): Boolean
dispatchKeyShortcutEvent
Link copied to clipboard
open fun dispatchKeyShortcutEvent(event: KeyEvent): Boolean
dispatchNestedFling
Link copied to clipboard
open fun dispatchNestedFling(velocityX: Float, velocityY: Float, consumed: Boolean): Boolean
dispatchNestedPreFling
Link copied to clipboard
open fun dispatchNestedPreFling(velocityX: Float, velocityY: Float): Boolean
open fun dispatchNestedPrePerformAccessibilityAction(action: Int, arguments: Bundle): Boolean
dispatchNestedPreScroll
Link copied to clipboard
open fun dispatchNestedPreScroll(dx: Int, dy: Int, consumed: Array<Int>, offsetInWindow: Array<Int>): Boolean
dispatchNestedScroll
Link copied to clipboard
open fun dispatchNestedScroll(dxConsumed: Int, dyConsumed: Int, dxUnconsumed: Int, dyUnconsumed: Int, offsetInWindow: Array<Int>): Boolean
fun dispatchNestedScroll(dxConsumed: Int, dyConsumed: Int, dxUnconsumed: Int, dyUnconsumed: Int, offsetInWindow: Array<Int>, type: Int, consumed: Array<Int>)
dispatchPointerCaptureChanged
Link copied to clipboard
open fun dispatchPointerCaptureChanged(hasCapture: Boolean)
dispatchPopulateAccessibilityEvent
Link copied to clipboard
open fun dispatchPopulateAccessibilityEvent(event: AccessibilityEvent): Boolean
dispatchProvideAutofillStructure
Link copied to clipboard
open fun dispatchProvideAutofillStructure(structure: ViewStructure, flags: Int)
dispatchProvideStructure
Link copied to clipboard
open fun dispatchProvideStructure(structure: ViewStructure)
dispatchSetActivated
Link copied to clipboard
open fun dispatchSetActivated(activated: Boolean)
dispatchSetSelected
Link copied to clipboard
open fun dispatchSetSelected(selected: Boolean)
dispatchStartTemporaryDetach
Link copied to clipboard
open fun dispatchStartTemporaryDetach()
dispatchSystemUiVisibilityChanged
Link copied to clipboard
open fun dispatchSystemUiVisibilityChanged(visible: Int)
dispatchTouchEvent
Link copied to clipboard
open fun dispatchTouchEvent(ev: MotionEvent): Boolean
dispatchTrackballEvent
Link copied to clipboard
open fun dispatchTrackballEvent(event: MotionEvent): Boolean
dispatchUnhandledMove
Link copied to clipboard
open fun dispatchUnhandledMove(focused: View, direction: Int): Boolean
dispatchWindowFocusChanged
Link copied to clipboard
open fun dispatchWindowFocusChanged(hasFocus: Boolean)
dispatchWindowSystemUiVisiblityChanged
Link copied to clipboard
open fun dispatchWindowSystemUiVisiblityChanged(visible: Int)
dispatchWindowVisibilityChanged
Link copied to clipboard
open fun dispatchWindowVisibilityChanged(visibility: Int)
draw
Link copied to clipboard
open fun draw(c: Canvas)
drawableHotspotChanged
Link copied to clipboard
open fun drawableHotspotChanged(x: Float, y: Float)
drawChild
Link copied to clipboard
open fun drawChild(canvas: Canvas, child: View, drawingTime: Long): Boolean
endViewTransition
Link copied to clipboard
open fun endViewTransition(view: View)
findChildViewUnder
Link copied to clipboard
open fun findChildViewUnder(x: Float, y: Float): View
findContainingItemView
Link copied to clipboard
open fun findContainingItemView(view: View): View
findContainingViewHolder
Link copied to clipboard
open fun findContainingViewHolder(view: View): RecyclerView.ViewHolder
findFocus
Link copied to clipboard
open fun findFocus(): View
findViewById
Link copied to clipboard
fun <T : View?> findViewById(id: Int): T
findViewHolderForAdapterPosition
Link copied to clipboard
open fun findViewHolderForAdapterPosition(position: Int): RecyclerView.ViewHolder
findViewHolderForItemId
Link copied to clipboard
open fun findViewHolderForItemId(id: Long): RecyclerView.ViewHolder
findViewHolderForLayoutPosition
Link copied to clipboard
open fun findViewHolderForLayoutPosition(position: Int): RecyclerView.ViewHolder
findViewHolderForPosition
Link copied to clipboard
open fun findViewHolderForPosition(position: Int): RecyclerView.ViewHolder
findViewsWithText
Link copied to clipboard
open fun findViewsWithText(outViews: ArrayList<View>, text: CharSequence, flags: Int)
findViewWithTag
Link copied to clipboard
fun <T : View?> findViewWithTag(tag: Any): T
fling
Link copied to clipboard
open fun fling(velocityX: Int, velocityY: Int): Boolean
focusableViewAvailable
Link copied to clipboard
open fun focusableViewAvailable(v: View)
focusSearch
Link copied to clipboard
open fun focusSearch(focused: View, direction: Int): View
forceHasOverlappingRendering
Link copied to clipboard
open fun forceHasOverlappingRendering(hasOverlappingRendering: Boolean)
forceLayout
Link copied to clipboard
open fun forceLayout()
gatherTransparentRegion
Link copied to clipboard
open fun gatherTransparentRegion(region: Region): Boolean
generateLayoutParams
Link copied to clipboard
open fun generateLayoutParams(attrs: AttributeSet): ViewGroup.LayoutParams
generateViewId
Link copied to clipboard
open fun generateViewId(): Int
getAccessibilityClassName
Link copied to clipboard
open fun getAccessibilityClassName(): CharSequence
getAccessibilityLiveRegion
Link copied to clipboard
open fun getAccessibilityLiveRegion(): Int
getAccessibilityNodeProvider
Link copied to clipboard
open fun getAccessibilityNodeProvider(): AccessibilityNodeProvider
getAccessibilityPaneTitle
Link copied to clipboard
open fun getAccessibilityPaneTitle(): CharSequence
getAccessibilityTraversalAfter
Link copied to clipboard
open fun getAccessibilityTraversalAfter(): Int
getAccessibilityTraversalBefore
Link copied to clipboard
open fun getAccessibilityTraversalBefore(): Int
getAdapter
Link copied to clipboard
open fun getAdapter(): RecyclerView.Adapter
getAlpha
Link copied to clipboard
open fun getAlpha(): Float
getAnimation
Link copied to clipboard
open fun getAnimation(): Animation
getApplicationWindowToken
Link copied to clipboard
open fun getApplicationWindowToken(): IBinder
getAutofillHints
Link copied to clipboard
open fun getAutofillHints(): Array<String>
getAutofillId
Link copied to clipboard
fun getAutofillId(): AutofillId
getAutofillType
Link copied to clipboard
open fun getAutofillType(): Int
getAutofillValue
Link copied to clipboard
open fun getAutofillValue(): AutofillValue
getBackground
Link copied to clipboard
open fun getBackground(): Drawable
getBackgroundTintList
Link copied to clipboard
open fun getBackgroundTintList(): ColorStateList
getBackgroundTintMode
Link copied to clipboard
open fun getBackgroundTintMode(): PorterDuff.Mode
getBaseline
Link copied to clipboard
open fun getBaseline(): Int
getBottom
Link copied to clipboard
fun getBottom(): Int
getCameraDistance
Link copied to clipboard
open fun getCameraDistance(): Float
getChildAdapterPosition
Link copied to clipboard
open fun getChildAdapterPosition(child: View): Int
getChildAt
Link copied to clipboard
open fun getChildAt(index: Int): View
getChildCount
Link copied to clipboard
open fun getChildCount(): Int
getChildItemId
Link copied to clipboard
open fun getChildItemId(child: View): Long
getChildLayoutPosition
Link copied to clipboard
open fun getChildLayoutPosition(child: View): Int
getChildMeasureSpec
Link copied to clipboard
open fun getChildMeasureSpec(spec: Int, padding: Int, childDimension: Int): Int
getChildPosition
Link copied to clipboard
open fun getChildPosition(child: View): Int
getChildViewHolder
Link copied to clipboard
open fun getChildViewHolder(child: View): RecyclerView.ViewHolder
getChildVisibleRect
Link copied to clipboard
open fun getChildVisibleRect(child: View, r: Rect, offset: Point): Boolean
getClipBounds
Link copied to clipboard
open fun getClipBounds(): Rect
open fun getClipBounds(outRect: Rect): Boolean
getClipChildren
Link copied to clipboard
open fun getClipChildren(): Boolean
getClipToOutline
Link copied to clipboard
fun getClipToOutline(): Boolean
getClipToPadding
Link copied to clipboard
open fun getClipToPadding(): Boolean
getCompatAccessibilityDelegate
Link copied to clipboard
getContentDescription
Link copied to clipboard
open fun getContentDescription(): CharSequence
getContext
Link copied to clipboard
fun getContext(): Context
getDecoratedBoundsWithMargins
Link copied to clipboard
open fun getDecoratedBoundsWithMargins(view: View, outBounds: Rect)
getDefaultFocusHighlightEnabled
Link copied to clipboard
fun getDefaultFocusHighlightEnabled(): Boolean
getDefaultSize
Link copied to clipboard
open fun getDefaultSize(size: Int, measureSpec: Int): Int
getDescendantFocusability
Link copied to clipboard
open fun getDescendantFocusability(): Int
getDisplay
Link copied to clipboard
open fun getDisplay(): Display
getDrawableState
Link copied to clipboard
fun getDrawableState(): Array<Int>
getDrawingCache
Link copied to clipboard
open fun getDrawingCache(): Bitmap
getDrawingCacheBackgroundColor
Link copied to clipboard
open fun getDrawingCacheBackgroundColor(): Int
getDrawingCacheQuality
Link copied to clipboard
open fun getDrawingCacheQuality(): Int
getDrawingRect
Link copied to clipboard
open fun getDrawingRect(outRect: Rect)
getDrawingTime
Link copied to clipboard
open fun getDrawingTime(): Long
getEdgeEffectFactory
Link copied to clipboard
open fun getEdgeEffectFactory(): RecyclerView.EdgeEffectFactory
getElevation
Link copied to clipboard
open fun getElevation(): Float
getFilterTouchesWhenObscured
Link copied to clipboard
open fun getFilterTouchesWhenObscured(): Boolean
getFitsSystemWindows
Link copied to clipboard
open fun getFitsSystemWindows(): Boolean
getFocusable
Link copied to clipboard
open fun getFocusable(): Int
getFocusables
Link copied to clipboard
open fun getFocusables(direction: Int): ArrayList<View>
getFocusedChild
Link copied to clipboard
open fun getFocusedChild(): View
getFocusedRect
Link copied to clipboard
open fun getFocusedRect(r: Rect)
getForeground
Link copied to clipboard
open fun getForeground(): Drawable
getForegroundGravity
Link copied to clipboard
open fun getForegroundGravity(): Int
getForegroundTintList
Link copied to clipboard
open fun getForegroundTintList(): ColorStateList
getForegroundTintMode
Link copied to clipboard
open fun getForegroundTintMode(): PorterDuff.Mode
getGlobalVisibleRect
Link copied to clipboard
open fun getGlobalVisibleRect(r: Rect, globalOffset: Point): Boolean
getHandler
Link copied to clipboard
open fun getHandler(): Handler
getHasOverlappingRendering
Link copied to clipboard
fun getHasOverlappingRendering(): Boolean
getHeight
Link copied to clipboard
fun getHeight(): Int
getHitRect
Link copied to clipboard
open fun getHitRect(outRect: Rect)
getHorizontalFadingEdgeLength
Link copied to clipboard
open fun getHorizontalFadingEdgeLength(): Int
getId
Link copied to clipboard
open fun getId(): Int
getImportantForAccessibility
Link copied to clipboard
open fun getImportantForAccessibility(): Int
getImportantForAutofill
Link copied to clipboard
open fun getImportantForAutofill(): Int
getItemAnimator
Link copied to clipboard
open fun getItemAnimator(): RecyclerView.ItemAnimator
getItemDecorationAt
Link copied to clipboard
open fun getItemDecorationAt(index: Int): RecyclerView.ItemDecoration
getItemDecorationCount
Link copied to clipboard
open fun getItemDecorationCount(): Int
getKeepScreenOn
Link copied to clipboard
open fun getKeepScreenOn(): Boolean
getKeyDispatcherState
Link copied to clipboard
open fun getKeyDispatcherState(): KeyEvent.DispatcherState
getLabelFor
Link copied to clipboard
open fun getLabelFor(): Int
getLayerType
Link copied to clipboard
open fun getLayerType(): Int
getLayoutAnimation
Link copied to clipboard
open fun getLayoutAnimation(): LayoutAnimationController
getLayoutAnimationListener
Link copied to clipboard
open fun getLayoutAnimationListener(): Animation.AnimationListener
getLayoutDirection
Link copied to clipboard
open fun getLayoutDirection(): Int
getLayoutManager
Link copied to clipboard
open fun getLayoutManager(): RecyclerView.LayoutManager
getLayoutMode
Link copied to clipboard
open fun getLayoutMode(): Int
getLayoutParams
Link copied to clipboard
open fun getLayoutParams(): ViewGroup.LayoutParams
getLayoutTransition
Link copied to clipboard
open fun getLayoutTransition(): LayoutTransition
getLeft
Link copied to clipboard
fun getLeft(): Int
getLocalVisibleRect
Link copied to clipboard
fun getLocalVisibleRect(r: Rect): Boolean
getLocationInWindow
Link copied to clipboard
open fun getLocationInWindow(outLocation: Array<Int>)
getLocationOnScreen
Link copied to clipboard
open fun getLocationOnScreen(outLocation: Array<Int>)
getMatrix
Link copied to clipboard
open fun getMatrix(): Matrix
getMaxFlingVelocity
Link copied to clipboard
open fun getMaxFlingVelocity(): Int
getMeasuredHeight
Link copied to clipboard
fun getMeasuredHeight(): Int
getMeasuredHeightAndState
Link copied to clipboard
fun getMeasuredHeightAndState(): Int
getMeasuredState
Link copied to clipboard
fun getMeasuredState(): Int
getMeasuredWidth
Link copied to clipboard
fun getMeasuredWidth(): Int
getMeasuredWidthAndState
Link copied to clipboard
fun getMeasuredWidthAndState(): Int
getMinFlingVelocity
Link copied to clipboard
open fun getMinFlingVelocity(): Int
getMinimumHeight
Link copied to clipboard
open fun getMinimumHeight(): Int
getMinimumWidth
Link copied to clipboard
open fun getMinimumWidth(): Int
getNestedScrollAxes
Link copied to clipboard
open fun getNestedScrollAxes(): Int
getNextClusterForwardId
Link copied to clipboard
open fun getNextClusterForwardId(): Int
getNextFocusDownId
Link copied to clipboard
open fun getNextFocusDownId(): Int
getNextFocusForwardId
Link copied to clipboard
open fun getNextFocusForwardId(): Int
getNextFocusLeftId
Link copied to clipboard
open fun getNextFocusLeftId(): Int
getNextFocusRightId
Link copied to clipboard
open fun getNextFocusRightId(): Int
getNextFocusUpId
Link copied to clipboard
open fun getNextFocusUpId(): Int
getOnFlingListener
Link copied to clipboard
open fun getOnFlingListener(): RecyclerView.OnFlingListener
getOnFocusChangeListener
Link copied to clipboard
open fun getOnFocusChangeListener(): View.OnFocusChangeListener
getOutlineAmbientShadowColor
Link copied to clipboard
open fun getOutlineAmbientShadowColor(): Int
getOutlineProvider
Link copied to clipboard
open fun getOutlineProvider(): ViewOutlineProvider
getOutlineSpotShadowColor
Link copied to clipboard
open fun getOutlineSpotShadowColor(): Int
getOverlay
Link copied to clipboard
open fun getOverlay(): ViewOverlay
open fun getOverlay(): ViewGroupOverlay
getOverScrollMode
Link copied to clipboard
open fun getOverScrollMode(): Int
getPaddingBottom
Link copied to clipboard
open fun getPaddingBottom(): Int
getPaddingEnd
Link copied to clipboard
open fun getPaddingEnd(): Int
getPaddingLeft
Link copied to clipboard
open fun getPaddingLeft(): Int
getPaddingRight
Link copied to clipboard
open fun getPaddingRight(): Int
getPaddingStart
Link copied to clipboard
open fun getPaddingStart(): Int
getPaddingTop
Link copied to clipboard
open fun getPaddingTop(): Int
getParent
Link copied to clipboard
fun getParent(): ViewParent
getParentForAccessibility
Link copied to clipboard
open fun getParentForAccessibility(): ViewParent
getPersistentDrawingCache
Link copied to clipboard
open fun getPersistentDrawingCache(): Int
getPivotX
Link copied to clipboard
open fun getPivotX(): Float
getPivotY
Link copied to clipboard
open fun getPivotY(): Float
getPointerIcon
Link copied to clipboard
open fun getPointerIcon(): PointerIcon
getPreserveFocusAfterLayout
Link copied to clipboard
open fun getPreserveFocusAfterLayout(): Boolean
getRecycledViewPool
Link copied to clipboard
open fun getRecycledViewPool(): RecyclerView.RecycledViewPool
getResources
Link copied to clipboard
open fun getResources(): Resources
getRevealOnFocusHint
Link copied to clipboard
fun getRevealOnFocusHint(): Boolean
getRight
Link copied to clipboard
fun getRight(): Int
getRootView
Link copied to clipboard
open fun getRootView(): View
getRootWindowInsets
Link copied to clipboard
open fun getRootWindowInsets(): WindowInsets
getRotation
Link copied to clipboard
open fun getRotation(): Float
getRotationX
Link copied to clipboard
open fun getRotationX(): Float
getRotationY
Link copied to clipboard
open fun getRotationY(): Float
getScaleX
Link copied to clipboard
open fun getScaleX(): Float
getScaleY
Link copied to clipboard
open fun getScaleY(): Float
getScrollBarDefaultDelayBeforeFade
Link copied to clipboard
open fun getScrollBarDefaultDelayBeforeFade(): Int
getScrollBarFadeDuration
Link copied to clipboard
open fun getScrollBarFadeDuration(): Int
getScrollBarSize
Link copied to clipboard
open fun getScrollBarSize(): Int
getScrollBarStyle
Link copied to clipboard
open fun getScrollBarStyle(): Int
getScrollIndicators
Link copied to clipboard
open fun getScrollIndicators(): Int
getScrollState
Link copied to clipboard
open fun getScrollState(): Int
getScrollX
Link copied to clipboard
fun getScrollX(): Int
getScrollY
Link copied to clipboard
fun getScrollY(): Int
getSolidColor
Link copied to clipboard
open fun getSolidColor(): Int
getStateListAnimator
Link copied to clipboard
open fun getStateListAnimator(): StateListAnimator
getSystemUiVisibility
Link copied to clipboard
open fun getSystemUiVisibility(): Int
getTag
Link copied to clipboard
open fun getTag(): Any
getTextAlignment
Link copied to clipboard
open fun getTextAlignment(): Int
getTextDirection
Link copied to clipboard
open fun getTextDirection(): Int
getTooltipText
Link copied to clipboard
open fun getTooltipText(): CharSequence
getTop
Link copied to clipboard
fun getTop(): Int
getTouchables
Link copied to clipboard
open fun getTouchables(): ArrayList<View>
getTouchDelegate
Link copied to clipboard
open fun getTouchDelegate(): TouchDelegate
getTouchscreenBlocksFocus
Link copied to clipboard
open fun getTouchscreenBlocksFocus(): Boolean
getTransitionName
Link copied to clipboard
open fun getTransitionName(): String
getTranslationX
Link copied to clipboard
open fun getTranslationX(): Float
getTranslationY
Link copied to clipboard
open fun getTranslationY(): Float
getTranslationZ
Link copied to clipboard
open fun getTranslationZ(): Float
getVerticalFadingEdgeLength
Link copied to clipboard
open fun getVerticalFadingEdgeLength(): Int
getVerticalScrollbarPosition
Link copied to clipboard
open fun getVerticalScrollbarPosition(): Int
getVerticalScrollbarWidth
Link copied to clipboard
open fun getVerticalScrollbarWidth(): Int
getViewTreeObserver
Link copied to clipboard
open fun getViewTreeObserver(): ViewTreeObserver
getVisibility
Link copied to clipboard
open fun getVisibility(): Int
getWidth
Link copied to clipboard
fun getWidth(): Int
getWindowId
Link copied to clipboard
open fun getWindowId(): WindowId
getWindowSystemUiVisibility
Link copied to clipboard
open fun getWindowSystemUiVisibility(): Int
getWindowToken
Link copied to clipboard
open fun getWindowToken(): IBinder
getWindowVisibility
Link copied to clipboard
open fun getWindowVisibility(): Int
getWindowVisibleDisplayFrame
Link copied to clipboard
open fun getWindowVisibleDisplayFrame(outRect: Rect)
getX
Link copied to clipboard
open fun getX(): Float
getY
Link copied to clipboard
open fun getY(): Float
getZ
Link copied to clipboard
open fun getZ(): Float
hasExplicitFocusable
Link copied to clipboard
open fun hasExplicitFocusable(): Boolean
hasFixedSize
Link copied to clipboard
open fun hasFixedSize(): Boolean
hasFocus
Link copied to clipboard
open fun hasFocus(): Boolean
hasFocusable
Link copied to clipboard
open fun hasFocusable(): Boolean
hasNestedScrollingParent
Link copied to clipboard
open fun hasNestedScrollingParent(): Boolean
hasOnClickListeners
Link copied to clipboard
open fun hasOnClickListeners(): Boolean
hasOverlappingRendering
Link copied to clipboard
open fun hasOverlappingRendering(): Boolean
hasPendingAdapterUpdates
Link copied to clipboard
open fun hasPendingAdapterUpdates(): Boolean
hasPointerCapture
Link copied to clipboard
open fun hasPointerCapture(): Boolean
hasTransientState
Link copied to clipboard
open fun hasTransientState(): Boolean
hasWindowFocus
Link copied to clipboard
open fun hasWindowFocus(): Boolean
indexOfChild
Link copied to clipboard
open fun indexOfChild(child: View): Int
inflate
Link copied to clipboard
open fun inflate(context: Context, resource: Int, root: ViewGroup): View
invalidate
Link copied to clipboard
open fun invalidate(dirty: Rect)
invalidateChild
Link copied to clipboard
fun invalidateChild(child: View, dirty: Rect)
invalidateChildInParent
Link copied to clipboard
open fun invalidateChildInParent(location: Array<Int>, dirty: Rect): ViewParent
invalidateDrawable
Link copied to clipboard
open fun invalidateDrawable(drawable: Drawable)
invalidateItemDecorations
Link copied to clipboard
open fun invalidateItemDecorations()
invalidateOutline
Link copied to clipboard
open fun invalidateOutline()
isAccessibilityFocused
Link copied to clipboard
open fun isAccessibilityFocused(): Boolean
isAccessibilityHeading
Link copied to clipboard
open fun isAccessibilityHeading(): Boolean
isActivated
Link copied to clipboard
open fun isActivated(): Boolean
isAlwaysDrawnWithCacheEnabled
Link copied to clipboard
open fun isAlwaysDrawnWithCacheEnabled(): Boolean
isAnimating
Link copied to clipboard
open fun isAnimating(): Boolean
isAnimationCacheEnabled
Link copied to clipboard
open fun isAnimationCacheEnabled(): Boolean
isAttachedToWindow
Link copied to clipboard
open fun isAttachedToWindow(): Boolean
isClickable
Link copied to clipboard
open fun isClickable(): Boolean
isComputingLayout
Link copied to clipboard
open fun isComputingLayout(): Boolean
isContextClickable
Link copied to clipboard
open fun isContextClickable(): Boolean
isDirty
Link copied to clipboard
open fun isDirty(): Boolean
isDrawingCacheEnabled
Link copied to clipboard
open fun isDrawingCacheEnabled(): Boolean
isDuplicateParentStateEnabled
Link copied to clipboard
open fun isDuplicateParentStateEnabled(): Boolean
isEnabled
Link copied to clipboard
open fun isEnabled(): Boolean
isFocusable
Link copied to clipboard
fun isFocusable(): Boolean
isFocusableInTouchMode
Link copied to clipboard
fun isFocusableInTouchMode(): Boolean
isFocused
Link copied to clipboard
open fun isFocused(): Boolean
isFocusedByDefault
Link copied to clipboard
fun isFocusedByDefault(): Boolean
isHapticFeedbackEnabled
Link copied to clipboard
open fun isHapticFeedbackEnabled(): Boolean
isHardwareAccelerated
Link copied to clipboard
open fun isHardwareAccelerated(): Boolean
isHorizontalFadingEdgeEnabled
Link copied to clipboard
open fun isHorizontalFadingEdgeEnabled(): Boolean
isHorizontalScrollBarEnabled
Link copied to clipboard
open fun isHorizontalScrollBarEnabled(): Boolean
isHovered
Link copied to clipboard
open fun isHovered(): Boolean
isImportantForAccessibility
Link copied to clipboard
open fun isImportantForAccessibility(): Boolean
isImportantForAutofill
Link copied to clipboard
fun isImportantForAutofill(): Boolean
isInEditMode
Link copied to clipboard
open fun isInEditMode(): Boolean
isInLayout
Link copied to clipboard
open fun isInLayout(): Boolean
isInTouchMode
Link copied to clipboard
open fun isInTouchMode(): Boolean
isKeyboardNavigationCluster
Link copied to clipboard
fun isKeyboardNavigationCluster(): Boolean
isLaidOut
Link copied to clipboard
open fun isLaidOut(): Boolean
isLayoutDirectionResolved
Link copied to clipboard
open fun isLayoutDirectionResolved(): Boolean
isLayoutFrozen
Link copied to clipboard
open fun isLayoutFrozen(): Boolean
isLayoutRequested
Link copied to clipboard
open fun isLayoutRequested(): Boolean
isLayoutSuppressed
Link copied to clipboard
fun isLayoutSuppressed(): Boolean
isLongClickable
Link copied to clipboard
open fun isLongClickable(): Boolean
isMotionEventSplittingEnabled
Link copied to clipboard
open fun isMotionEventSplittingEnabled(): Boolean
isNestedScrollingEnabled
Link copied to clipboard
open fun isNestedScrollingEnabled(): Boolean
isOpaque
Link copied to clipboard
open fun isOpaque(): Boolean
isPaddingRelative
Link copied to clipboard
open fun isPaddingRelative(): Boolean
isPivotSet
Link copied to clipboard
open fun isPivotSet(): Boolean
isPressed
Link copied to clipboard
open fun isPressed(): Boolean
isSaveEnabled
Link copied to clipboard
open fun isSaveEnabled(): Boolean
isSaveFromParentEnabled
Link copied to clipboard
open fun isSaveFromParentEnabled(): Boolean
isScreenReaderFocusable
Link copied to clipboard
open fun isScreenReaderFocusable(): Boolean
isScrollbarFadingEnabled
Link copied to clipboard
open fun isScrollbarFadingEnabled(): Boolean
isScrollContainer
Link copied to clipboard
open fun isScrollContainer(): Boolean
isSelected
Link copied to clipboard
open fun isSelected(): Boolean
isShown
Link copied to clipboard
open fun isShown(): Boolean
isSoundEffectsEnabled
Link copied to clipboard
open fun isSoundEffectsEnabled(): Boolean
isTemporarilyDetached
Link copied to clipboard
fun isTemporarilyDetached(): Boolean
isTextAlignmentResolved
Link copied to clipboard
open fun isTextAlignmentResolved(): Boolean
isTextDirectionResolved
Link copied to clipboard
open fun isTextDirectionResolved(): Boolean
isTransitionGroup
Link copied to clipboard
open fun isTransitionGroup(): Boolean
isVerticalFadingEdgeEnabled
Link copied to clipboard
open fun isVerticalFadingEdgeEnabled(): Boolean
isVerticalScrollBarEnabled
Link copied to clipboard
open fun isVerticalScrollBarEnabled(): Boolean
isVisibleToUserForAutofill
Link copied to clipboard
open fun isVisibleToUserForAutofill(virtualId: Int): Boolean
jumpDrawablesToCurrentState
Link copied to clipboard
open fun jumpDrawablesToCurrentState()
keyboardNavigationClusterSearch
Link copied to clipboard
open fun keyboardNavigationClusterSearch(currentCluster: View, direction: Int): View
layout
Link copied to clipboard
fun layout(l: Int, t: Int, r: Int, b: Int)
measure
Link copied to clipboard
fun measure(widthMeasureSpec: Int, heightMeasureSpec: Int)
notifySubtreeAccessibilityStateChanged
Link copied to clipboard
open fun notifySubtreeAccessibilityStateChanged(child: View, source: View, changeType: Int)
offsetChildrenHorizontal
Link copied to clipboard
open fun offsetChildrenHorizontal(dx: Int)
offsetChildrenVertical
Link copied to clipboard
open fun offsetChildrenVertical(dy: Int)
offsetDescendantRectToMyCoords
Link copied to clipboard
fun offsetDescendantRectToMyCoords(descendant: View, rect: Rect)
offsetLeftAndRight
Link copied to clipboard
open fun offsetLeftAndRight(offset: Int)
offsetRectIntoDescendantCoords
Link copied to clipboard
fun offsetRectIntoDescendantCoords(descendant: View, rect: Rect)
offsetTopAndBottom
Link copied to clipboard
open fun offsetTopAndBottom(offset: Int)
onApplyWindowInsets
Link copied to clipboard
open fun onApplyWindowInsets(insets: WindowInsets): WindowInsets
onAttachedToWindow
Link copied to clipboard
open fun onAttachedToWindow()
onCancelPendingInputEvents
Link copied to clipboard
open fun onCancelPendingInputEvents()
onCapturedPointerEvent
Link copied to clipboard
open fun onCapturedPointerEvent(event: MotionEvent): Boolean
onCheckIsTextEditor
Link copied to clipboard
open fun onCheckIsTextEditor(): Boolean
onChildAttachedToWindow
Link copied to clipboard
open fun onChildAttachedToWindow(child: View)
open fun onChildAttachedToWindow(child: View)
onChildDetachedFromWindow
Link copied to clipboard
open fun onChildDetachedFromWindow(child: View)
open fun onChildDetachedFromWindow(child: View)
onCreateInputConnection
Link copied to clipboard
open fun onCreateInputConnection(outAttrs: EditorInfo): InputConnection
onDescendantInvalidated
Link copied to clipboard
open fun onDescendantInvalidated(child: View, target: View)
onDetachedFromWindow
Link copied to clipboard
open fun onDetachedFromWindow()
onDragEvent
Link copied to clipboard
open fun onDragEvent(event: DragEvent): Boolean
onDraw
Link copied to clipboard
open fun onDraw(c: Canvas)
onDrawForeground
Link copied to clipboard
open fun onDrawForeground(canvas: Canvas)
onFilterTouchEventForSecurity
Link copied to clipboard
open fun onFilterTouchEventForSecurity(event: MotionEvent): Boolean
onFinishTemporaryDetach
Link copied to clipboard
open fun onFinishTemporaryDetach()
onGenericMotionEvent
Link copied to clipboard
open fun onGenericMotionEvent(event: MotionEvent): Boolean
onHoverChanged
Link copied to clipboard
open fun onHoverChanged(hovered: Boolean)
onHoverEvent
Link copied to clipboard
open fun onHoverEvent(event: MotionEvent): Boolean
onInitializeAccessibilityEvent
Link copied to clipboard
open fun onInitializeAccessibilityEvent(event: AccessibilityEvent)
onInitializeAccessibilityNodeInfo
Link copied to clipboard
open fun onInitializeAccessibilityNodeInfo(info: AccessibilityNodeInfo)
onInterceptHoverEvent
Link copied to clipboard
open fun onInterceptHoverEvent(event: MotionEvent): Boolean
onInterceptTouchEvent
Link copied to clipboard
open fun onInterceptTouchEvent(e: MotionEvent): Boolean
onKeyDown
Link copied to clipboard
open fun onKeyDown(keyCode: Int, event: KeyEvent): Boolean
onKeyLongPress
Link copied to clipboard
open fun onKeyLongPress(keyCode: Int, event: KeyEvent): Boolean
onKeyMultiple
Link copied to clipboard
open fun onKeyMultiple(keyCode: Int, repeatCount: Int, event: KeyEvent): Boolean
onKeyPreIme
Link copied to clipboard
open fun onKeyPreIme(keyCode: Int, event: KeyEvent): Boolean
onKeyShortcut
Link copied to clipboard
open fun onKeyShortcut(keyCode: Int, event: KeyEvent): Boolean
onKeyUp
Link copied to clipboard
open fun onKeyUp(keyCode: Int, event: KeyEvent): Boolean
onNestedFling
Link copied to clipboard
open fun onNestedFling(target: View, velocityX: Float, velocityY: Float, consumed: Boolean): Boolean
onNestedPreFling
Link copied to clipboard
open fun onNestedPreFling(target: View, velocityX: Float, velocityY: Float): Boolean
onNestedPrePerformAccessibilityAction
Link copied to clipboard
open fun onNestedPrePerformAccessibilityAction(target: View, action: Int, args: Bundle): Boolean
onNestedPreScroll
Link copied to clipboard
open fun onNestedPreScroll(target: View, dx: Int, dy: Int, consumed: Array<Int>)
onNestedScroll
Link copied to clipboard
open fun onNestedScroll(target: View, dxConsumed: Int, dyConsumed: Int, dxUnconsumed: Int, dyUnconsumed: Int)
onNestedScrollAccepted
Link copied to clipboard
open fun onNestedScrollAccepted(child: View, target: View, axes: Int)
onPointerCaptureChange
Link copied to clipboard
open fun onPointerCaptureChange(hasCapture: Boolean)
onPopulateAccessibilityEvent
Link copied to clipboard
open fun onPopulateAccessibilityEvent(event: AccessibilityEvent)
onProvideAutofillStructure
Link copied to clipboard
open fun onProvideAutofillStructure(structure: ViewStructure, flags: Int)
onProvideAutofillVirtualStructure
Link copied to clipboard
open fun onProvideAutofillVirtualStructure(structure: ViewStructure, flags: Int)
onProvideStructure
Link copied to clipboard
open fun onProvideStructure(structure: ViewStructure)
onProvideVirtualStructure
Link copied to clipboard
open fun onProvideVirtualStructure(structure: ViewStructure)
onRequestSendAccessibilityEvent
Link copied to clipboard
open fun onRequestSendAccessibilityEvent(child: View, event: AccessibilityEvent): Boolean
onResolvePointerIcon
Link copied to clipboard
open fun onResolvePointerIcon(event: MotionEvent, pointerIndex: Int): PointerIcon
onRtlPropertiesChanged
Link copied to clipboard
open fun onRtlPropertiesChanged(layoutDirection: Int)
onScreenStateChanged
Link copied to clipboard
open fun onScreenStateChanged(screenState: Int)
onScrolled
Link copied to clipboard
open fun onScrolled(dx: Int, dy: Int)
onScrollStateChanged
Link copied to clipboard
open fun onScrollStateChanged(state: Int)
onStartNestedScroll
Link copied to clipboard
open fun onStartNestedScroll(child: View, target: View, nestedScrollAxes: Int): Boolean
onStartTemporaryDetach
Link copied to clipboard
open fun onStartTemporaryDetach()
onStopNestedScroll
Link copied to clipboard
open fun onStopNestedScroll(child: View)
onTouchEvent
Link copied to clipboard
open fun onTouchEvent(e: MotionEvent): Boolean
onTrackballEvent
Link copied to clipboard
open fun onTrackballEvent(event: MotionEvent): Boolean
onViewAdded
Link copied to clipboard
open fun onViewAdded(child: View)
onViewRemoved
Link copied to clipboard
open fun onViewRemoved(child: View)
onVisibilityAggregated
Link copied to clipboard
open fun onVisibilityAggregated(isVisible: Boolean)
onWindowFocusChanged
Link copied to clipboard
open fun onWindowFocusChanged(hasWindowFocus: Boolean)
onWindowSystemUiVisibilityChanged
Link copied to clipboard
open fun onWindowSystemUiVisibilityChanged(visible: Int)
performAccessibilityAction
Link copied to clipboard
open fun performAccessibilityAction(action: Int, arguments: Bundle): Boolean
performClick
Link copied to clipboard
open fun performClick(): Boolean
performContextClick
Link copied to clipboard
open fun performContextClick(x: Float, y: Float): Boolean
performHapticFeedback
Link copied to clipboard
open fun performHapticFeedback(feedbackConstant: Int): Boolean
performLongClick
Link copied to clipboard
open fun performLongClick(): Boolean
playSoundEffect
Link copied to clipboard
open fun playSoundEffect(soundConstant: Int)
post
Link copied to clipboard
open fun post(action: Runnable): Boolean
postDelayed
Link copied to clipboard
open fun postDelayed(action: Runnable, delayMillis: Long): Boolean
postInvalidate
Link copied to clipboard
open fun postInvalidate()
postInvalidateDelayed
Link copied to clipboard
open fun postInvalidateDelayed(delayMilliseconds: Long)
postInvalidateOnAnimation
Link copied to clipboard
open fun postInvalidateOnAnimation()
postOnAnimation
Link copied to clipboard
open fun postOnAnimation(action: Runnable)
postOnAnimationDelayed
Link copied to clipboard
open fun postOnAnimationDelayed(action: Runnable, delayMillis: Long)
recomputeViewAttributes
Link copied to clipboard
open fun recomputeViewAttributes(child: View)
refreshDrawableState
Link copied to clipboard
open fun refreshDrawableState()
releasePointerCapture
Link copied to clipboard
open fun releasePointerCapture()
removeAllViews
Link copied to clipboard
open fun removeAllViews()
removeAllViewsInLayout
Link copied to clipboard
open fun removeAllViewsInLayout()
removeCallbacks
Link copied to clipboard
open fun removeCallbacks(action: Runnable): Boolean
removeItemDecoration
Link copied to clipboard
open fun removeItemDecoration(decor: RecyclerView.ItemDecoration)
removeItemDecorationAt
Link copied to clipboard
open fun removeItemDecorationAt(index: Int)
removeOnAttachStateChangeListener
Link copied to clipboard
open fun removeOnAttachStateChangeListener(listener: View.OnAttachStateChangeListener)
removeOnItemTouchListener
Link copied to clipboard
open fun removeOnItemTouchListener(listener: RecyclerView.OnItemTouchListener)
removeOnLayoutChangeListener
Link copied to clipboard
open fun removeOnLayoutChangeListener(listener: View.OnLayoutChangeListener)
removeOnScrollListener
Link copied to clipboard
open fun removeOnScrollListener(listener: RecyclerView.OnScrollListener)
removeOnUnhandledKeyEventListener
Link copied to clipboard
open fun removeOnUnhandledKeyEventListener(listener: View.OnUnhandledKeyEventListener)
removeView
Link copied to clipboard
open fun removeView(view: View)
removeViewAt
Link copied to clipboard
open fun removeViewAt(index: Int)
removeViewInLayout
Link copied to clipboard
open fun removeViewInLayout(view: View)
removeViews
Link copied to clipboard
open fun removeViews(start: Int, count: Int)
removeViewsInLayout
Link copied to clipboard
open fun removeViewsInLayout(start: Int, count: Int)
requestApplyInsets
Link copied to clipboard
open fun requestApplyInsets()
requestChildFocus
Link copied to clipboard
open fun requestChildFocus(child: View, focused: View)
requestChildRectangleOnScreen
Link copied to clipboard
open fun requestChildRectangleOnScreen(child: View, rect: Rect, immediate: Boolean): Boolean
requestDisallowInterceptTouchEvent
Link copied to clipboard
open fun requestDisallowInterceptTouchEvent(disallowIntercept: Boolean)
requestFitSystemWindows
Link copied to clipboard
open fun requestFitSystemWindows()
requestFocus
Link copied to clipboard
open fun requestFocus(direction: Int, previouslyFocusedRect: Rect): Boolean
requestFocusFromTouch
Link copied to clipboard
fun requestFocusFromTouch(): Boolean
requestLayout
Link copied to clipboard
open fun requestLayout()
open fun requestLayout()
requestModelBuild
Link copied to clipboard
fun requestModelBuild()
requestPointerCapture
Link copied to clipboard
open fun requestPointerCapture()
requestRectangleOnScreen
Link copied to clipboard
open fun requestRectangleOnScreen(rectangle: Rect): Boolean
requestSendAccessibilityEvent
Link copied to clipboard
open fun requestSendAccessibilityEvent(child: View, event: AccessibilityEvent): Boolean
requestTransparentRegion
Link copied to clipboard
open fun requestTransparentRegion(child: View)
requestUnbufferedDispatch
Link copied to clipboard
fun requestUnbufferedDispatch(event: MotionEvent)
requireViewById
Link copied to clipboard
fun <T : View?> requireViewById(id: Int): T
resetPivot
Link copied to clipboard
open fun resetPivot()
resolveSize
Link copied to clipboard
open fun resolveSize(size: Int, measureSpec: Int): Int
resolveSizeAndState
Link copied to clipboard
open fun resolveSizeAndState(size: Int, measureSpec: Int, childMeasuredState: Int): Int
restoreDefaultFocus
Link copied to clipboard
open fun restoreDefaultFocus(): Boolean
restoreHierarchyState
Link copied to clipboard
open fun restoreHierarchyState(container: SparseArray<Parcelable>)
saveHierarchyState
Link copied to clipboard
open fun saveHierarchyState(container: SparseArray<Parcelable>)
scheduleDrawable
Link copied to clipboard
open fun scheduleDrawable(who: Drawable, what: Runnable, when: Long)
scheduleLayoutAnimation
Link copied to clipboard
open fun scheduleLayoutAnimation()
scrollBy
Link copied to clipboard
open fun scrollBy(x: Int, y: Int)
scrollTo
Link copied to clipboard
open fun scrollTo(x: Int, y: Int)
scrollToPosition
Link copied to clipboard
open fun scrollToPosition(position: Int)
sendAccessibilityEvent
Link copied to clipboard
open fun sendAccessibilityEvent(eventType: Int)
sendAccessibilityEventUnchecked
Link copied to clipboard
open fun sendAccessibilityEventUnchecked(event: AccessibilityEvent)
setAccessibilityDelegate
Link copied to clipboard
open fun setAccessibilityDelegate(delegate: View.AccessibilityDelegate)
setAccessibilityDelegateCompat
Link copied to clipboard
open fun setAccessibilityDelegateCompat(accessibilityDelegate: RecyclerViewAccessibilityDelegate)
setAccessibilityHeading
Link copied to clipboard
open fun setAccessibilityHeading(isHeading: Boolean)
setAccessibilityLiveRegion
Link copied to clipboard
open fun setAccessibilityLiveRegion(mode: Int)
setAccessibilityPaneTitle
Link copied to clipboard
open fun setAccessibilityPaneTitle(accessibilityPaneTitle: CharSequence)
setAccessibilityTraversalAfter
Link copied to clipboard
open fun setAccessibilityTraversalAfter(afterId: Int)
setAccessibilityTraversalBefore
Link copied to clipboard
open fun setAccessibilityTraversalBefore(beforeId: Int)
setActivated
Link copied to clipboard
open fun setActivated(activated: Boolean)
setAdapter
Link copied to clipboard
open fun setAdapter(adapter: RecyclerView.Adapter)
open fun setAdapter(adapter: Null)
setAddStatesFromChildren
Link copied to clipboard
open fun setAddStatesFromChildren(addsStates: Boolean)
setAlpha
Link copied to clipboard
open fun setAlpha(alpha: Float)
setAlwaysDrawnWithCacheEnabled
Link copied to clipboard
open fun setAlwaysDrawnWithCacheEnabled(always: Boolean)
setAnimation
Link copied to clipboard
open fun setAnimation(animation: Animation)
setAnimationCacheEnabled
Link copied to clipboard
open fun setAnimationCacheEnabled(enabled: Boolean)
setAutofillHints
Link copied to clipboard
open fun setAutofillHints(autofillHints: Array<String>)
setAutofillId
Link copied to clipboard
open fun setAutofillId(id: AutofillId)
setBackground
Link copied to clipboard
open fun setBackground(background: Drawable)
setBackgroundColor
Link copied to clipboard
open fun setBackgroundColor(color: Int)
setBackgroundDrawable
Link copied to clipboard
open fun setBackgroundDrawable(background: Drawable)
setBackgroundResource
Link copied to clipboard
open fun setBackgroundResource(resid: Int)
setBackgroundTintList
Link copied to clipboard
open fun setBackgroundTintList(tint: ColorStateList)
setBackgroundTintMode
Link copied to clipboard
open fun setBackgroundTintMode(tintMode: PorterDuff.Mode)
setBottom
Link copied to clipboard
fun setBottom(bottom: Int)
setCameraDistance
Link copied to clipboard
open fun setCameraDistance(distance: Float)
setChildDrawingOrderCallback
Link copied to clipboard
open fun setChildDrawingOrderCallback(childDrawingOrderCallback: RecyclerView.ChildDrawingOrderCallback)
setClickable
Link copied to clipboard
open fun setClickable(clickable: Boolean)
setClipBounds
Link copied to clipboard
open fun setClipBounds(clipBounds: Rect)
setClipChildren
Link copied to clipboard
open fun setClipChildren(clipChildren: Boolean)
setClipToOutline
Link copied to clipboard
open fun setClipToOutline(clipToOutline: Boolean)
setClipToPadding
Link copied to clipboard
open fun setClipToPadding(clipToPadding: Boolean)
setContentDescription
Link copied to clipboard
open fun setContentDescription(contentDescription: CharSequence)
setContextClickable
Link copied to clipboard
open fun setContextClickable(contextClickable: Boolean)
setController
Link copied to clipboard
fun setController(controller: Null)
setControllerAndBuildModels
Link copied to clipboard
fun setControllerAndBuildModels(controller: Null)
setDefaultFocusHighlightEnabled
Link copied to clipboard
open fun setDefaultFocusHighlightEnabled(defaultFocusHighlightEnabled: Boolean)
setDefaultItemSpacingDp
Link copied to clipboard
open fun setDefaultItemSpacingDp(@Dimension(unit = Dimension.DPdp: Int)
Set a global default to use as the item spacing for all Carousels.
setDelayMsWhenRemovingAdapterOnDetach
Link copied to clipboard
fun setDelayMsWhenRemovingAdapterOnDetach(delayMsWhenRemovingAdapterOnDetach: Null)
setDescendantFocusability
Link copied to clipboard
open fun setDescendantFocusability(focusability: Int)
setDrawingCacheBackgroundColor
Link copied to clipboard
open fun setDrawingCacheBackgroundColor(color: Int)
setDrawingCacheEnabled
Link copied to clipboard
open fun setDrawingCacheEnabled(enabled: Boolean)
setDrawingCacheQuality
Link copied to clipboard
open fun setDrawingCacheQuality(quality: Int)
setDuplicateParentStateEnabled
Link copied to clipboard
open fun setDuplicateParentStateEnabled(enabled: Boolean)
setEdgeEffectFactory
Link copied to clipboard
open fun setEdgeEffectFactory(edgeEffectFactory: RecyclerView.EdgeEffectFactory)
setElevation
Link copied to clipboard
open fun setElevation(elevation: Float)
setEnabled
Link copied to clipboard
open fun setEnabled(enabled: Boolean)
setFadingEdgeLength
Link copied to clipboard
open fun setFadingEdgeLength(length: Int)
setFilterTouchesWhenObscured
Link copied to clipboard
open fun setFilterTouchesWhenObscured(enabled: Boolean)
setFitsSystemWindows
Link copied to clipboard
open fun setFitsSystemWindows(fitSystemWindows: Boolean)
setFocusable
Link copied to clipboard
open fun setFocusable(focusable: Boolean)
setFocusableInTouchMode
Link copied to clipboard
open fun setFocusableInTouchMode(focusableInTouchMode: Boolean)
setFocusedByDefault
Link copied to clipboard
open fun setFocusedByDefault(isFocusedByDefault: Boolean)
setForeground
Link copied to clipboard
open fun setForeground(foreground: Drawable)
setForegroundGravity
Link copied to clipboard
open fun setForegroundGravity(gravity: Int)
setForegroundTintList
Link copied to clipboard
open fun setForegroundTintList(tint: ColorStateList)
setForegroundTintMode
Link copied to clipboard
open fun setForegroundTintMode(tintMode: PorterDuff.Mode)
setHapticFeedbackEnabled
Link copied to clipboard
open fun setHapticFeedbackEnabled(hapticFeedbackEnabled: Boolean)
setHasFixedSize
Link copied to clipboard
open fun setHasFixedSize(hasFixedSize: Boolean)
open fun setHasFixedSize(hasFixedSize: Boolean)
setHasTransientState
Link copied to clipboard
open fun setHasTransientState(hasTransientState: Boolean)
setHorizontalFadingEdgeEnabled
Link copied to clipboard
open fun setHorizontalFadingEdgeEnabled(horizontalFadingEdgeEnabled: Boolean)
setHorizontalScrollBarEnabled
Link copied to clipboard
open fun setHorizontalScrollBarEnabled(horizontalScrollBarEnabled: Boolean)
setHovered
Link copied to clipboard
open fun setHovered(hovered: Boolean)
setId
Link copied to clipboard
open fun setId(id: Int)
setImportantForAccessibility
Link copied to clipboard
open fun setImportantForAccessibility(mode: Int)
setImportantForAutofill
Link copied to clipboard
open fun setImportantForAutofill(mode: Int)
setInitialPrefetchItemCount
Link copied to clipboard
open fun setInitialPrefetchItemCount(numItemsToPrefetch: Int)
If you are using a Linear or Grid layout manager you can use this to set the item prefetchcount.
setItemAnimator
Link copied to clipboard
open fun setItemAnimator(animator: RecyclerView.ItemAnimator)
setItemSpacingDp
Link copied to clipboard
fun setItemSpacingDp(dp: Null)
setItemSpacingPx
Link copied to clipboard
open fun setItemSpacingPx(spacingPx: Null)
setItemSpacingRes
Link copied to clipboard
fun setItemSpacingRes(itemSpacingRes: Null)
setItemViewCacheSize
Link copied to clipboard
open fun setItemViewCacheSize(size: Int)
setKeepScreenOn
Link copied to clipboard
open fun setKeepScreenOn(keepScreenOn: Boolean)
setKeyboardNavigationCluster
Link copied to clipboard
open fun setKeyboardNavigationCluster(isCluster: Boolean)
setLabelFor
Link copied to clipboard
open fun setLabelFor(id: Int)
setLayerPaint
Link copied to clipboard
open fun setLayerPaint(paint: Paint)
setLayerType
Link copied to clipboard
open fun setLayerType(layerType: Int, paint: Paint)
setLayoutAnimation
Link copied to clipboard
open fun setLayoutAnimation(controller: LayoutAnimationController)
setLayoutAnimationListener
Link copied to clipboard
open fun setLayoutAnimationListener(animationListener: Animation.AnimationListener)
setLayoutDirection
Link copied to clipboard
open fun setLayoutDirection(layoutDirection: Int)
setLayoutFrozen
Link copied to clipboard
open fun setLayoutFrozen(frozen: Boolean)
setLayoutManager
Link copied to clipboard
open fun setLayoutManager(layout: RecyclerView.LayoutManager)
open fun setLayoutManager(layout: Null)
setLayoutMode
Link copied to clipboard
open fun setLayoutMode(layoutMode: Int)
setLayoutParams
Link copied to clipboard
open fun setLayoutParams(params: ViewGroup.LayoutParams)
open fun setLayoutParams(params: Null)
setLayoutTransition
Link copied to clipboard
open fun setLayoutTransition(transition: LayoutTransition)
setLeft
Link copied to clipboard
fun setLeft(left: Int)
setLongClickable
Link copied to clipboard
open fun setLongClickable(longClickable: Boolean)
setMinimumHeight
Link copied to clipboard
open fun setMinimumHeight(minHeight: Int)
setMinimumWidth
Link copied to clipboard
open fun setMinimumWidth(minWidth: Int)
setModels
Link copied to clipboard
open fun setModels(@NonNull() models: List<out EpoxyModel<out Any>>)
open fun setModels(models: Null)
setMotionEventSplittingEnabled
Link copied to clipboard
open fun setMotionEventSplittingEnabled(split: Boolean)
setNestedScrollingEnabled
Link copied to clipboard
open fun setNestedScrollingEnabled(enabled: Boolean)
setNextClusterForwardId
Link copied to clipboard
open fun setNextClusterForwardId(nextClusterForwardId: Int)
setNextFocusDownId
Link copied to clipboard
open fun setNextFocusDownId(nextFocusDownId: Int)
setNextFocusForwardId
Link copied to clipboard
open fun setNextFocusForwardId(nextFocusForwardId: Int)
setNextFocusLeftId
Link copied to clipboard
open fun setNextFocusLeftId(nextFocusLeftId: Int)
setNextFocusRightId
Link copied to clipboard
open fun setNextFocusRightId(nextFocusRightId: Int)
setNextFocusUpId
Link copied to clipboard
open fun setNextFocusUpId(nextFocusUpId: Int)
setOnApplyWindowInsetsListener
Link copied to clipboard
open fun setOnApplyWindowInsetsListener(listener: View.OnApplyWindowInsetsListener)
setOnCapturedPointerListener
Link copied to clipboard
open fun setOnCapturedPointerListener(l: View.OnCapturedPointerListener)
setOnClickListener
Link copied to clipboard
open fun setOnClickListener(l: View.OnClickListener)
setOnContextClickListener
Link copied to clipboard
open fun setOnContextClickListener(l: View.OnContextClickListener)
setOnCreateContextMenuListener
Link copied to clipboard
setOnDragListener
Link copied to clipboard
open fun setOnDragListener(l: View.OnDragListener)
setOnFlingListener
Link copied to clipboard
open fun setOnFlingListener(onFlingListener: RecyclerView.OnFlingListener)
setOnFocusChangeListener
Link copied to clipboard
open fun setOnFocusChangeListener(l: View.OnFocusChangeListener)
setOnGenericMotionListener
Link copied to clipboard
open fun setOnGenericMotionListener(l: View.OnGenericMotionListener)
setOnHierarchyChangeListener
Link copied to clipboard
open fun setOnHierarchyChangeListener(listener: ViewGroup.OnHierarchyChangeListener)
setOnHoverListener
Link copied to clipboard
open fun setOnHoverListener(l: View.OnHoverListener)
setOnKeyListener
Link copied to clipboard
open fun setOnKeyListener(l: View.OnKeyListener)
setOnLongClickListener
Link copied to clipboard
open fun setOnLongClickListener(l: View.OnLongClickListener)
setOnScrollChangeListener
Link copied to clipboard
open fun setOnScrollChangeListener(l: View.OnScrollChangeListener)
setOnScrollListener
Link copied to clipboard
open fun setOnScrollListener(listener: RecyclerView.OnScrollListener)
setOnTouchListener
Link copied to clipboard
open fun setOnTouchListener(l: View.OnTouchListener)
setOutlineAmbientShadowColor
Link copied to clipboard
open fun setOutlineAmbientShadowColor(color: Int)
setOutlineProvider
Link copied to clipboard
open fun setOutlineProvider(provider: ViewOutlineProvider)
setOutlineSpotShadowColor
Link copied to clipboard
open fun setOutlineSpotShadowColor(color: Int)
setOverScrollMode
Link copied to clipboard
open fun setOverScrollMode(overScrollMode: Int)
setPadding
Link copied to clipboard
open fun setPadding(@Nullable() padding: Carousel.Padding)
Use the Padding class to specify individual padding values for each side of thecarousel, as well as item spacing.
open fun setPadding(left: Int, top: Int, right: Int, bottom: Int)
setPaddingDp
Link copied to clipboard
open fun setPaddingDp(@Dimension(unit = Dimension.DPpaddingDp: Int)
Set a DP value to use as the padding on each side of the carousel and in between carouselitems.
setPaddingRelative
Link copied to clipboard
open fun setPaddingRelative(start: Int, top: Int, end: Int, bottom: Int)
setPaddingRes
Link copied to clipboard
open fun setPaddingRes(@DimenRes() paddingRes: Int)
Set a dimension resource to specify the padding value to use on each side of the carousel andin between carousel items.
setPersistentDrawingCache
Link copied to clipboard
open fun setPersistentDrawingCache(drawingCacheToKeep: Int)
setPivotX
Link copied to clipboard
open fun setPivotX(pivotX: Float)
setPivotY
Link copied to clipboard
open fun setPivotY(pivotY: Float)
setPointerIcon
Link copied to clipboard
open fun setPointerIcon(pointerIcon: PointerIcon)
setPreserveFocusAfterLayout
Link copied to clipboard
open fun setPreserveFocusAfterLayout(preserveFocusAfterLayout: Boolean)
setPressed
Link copied to clipboard
open fun setPressed(pressed: Boolean)
setRecycledViewPool
Link copied to clipboard
open fun setRecycledViewPool(pool: RecyclerView.RecycledViewPool)
setRecyclerListener
Link copied to clipboard
open fun setRecyclerListener(listener: RecyclerView.RecyclerListener)
setRemoveAdapterWhenDetachedFromWindow
Link copied to clipboard
fun setRemoveAdapterWhenDetachedFromWindow(removeAdapterWhenDetachedFromWindow: Null)
setRevealOnFocusHint
Link copied to clipboard
fun setRevealOnFocusHint(revealOnFocus: Boolean)
setRight
Link copied to clipboard
fun setRight(right: Int)
setRotation
Link copied to clipboard
open fun setRotation(rotation: Float)
setRotationX
Link copied to clipboard
open fun setRotationX(rotationX: Float)
setRotationY
Link copied to clipboard
open fun setRotationY(rotationY: Float)
setSaveEnabled
Link copied to clipboard
open fun setSaveEnabled(enabled: Boolean)
setSaveFromParentEnabled
Link copied to clipboard
open fun setSaveFromParentEnabled(enabled: Boolean)
setScaleX
Link copied to clipboard
open fun setScaleX(scaleX: Float)
setScaleY
Link copied to clipboard
open fun setScaleY(scaleY: Float)
setScreenReaderFocusable
Link copied to clipboard
open fun setScreenReaderFocusable(screenReaderFocusable: Boolean)
setScrollBarDefaultDelayBeforeFade
Link copied to clipboard
open fun setScrollBarDefaultDelayBeforeFade(scrollBarDefaultDelayBeforeFade: Int)
setScrollBarFadeDuration
Link copied to clipboard
open fun setScrollBarFadeDuration(scrollBarFadeDuration: Int)
setScrollbarFadingEnabled
Link copied to clipboard
open fun setScrollbarFadingEnabled(fadeScrollbars: Boolean)
setScrollBarSize
Link copied to clipboard
open fun setScrollBarSize(scrollBarSize: Int)
setScrollBarStyle
Link copied to clipboard
open fun setScrollBarStyle(style: Int)
setScrollContainer
Link copied to clipboard
open fun setScrollContainer(isScrollContainer: Boolean)
setScrollIndicators
Link copied to clipboard
open fun setScrollIndicators(indicators: Int)
setScrollingTouchSlop
Link copied to clipboard
open fun setScrollingTouchSlop(slopConstant: Int)
setScrollX
Link copied to clipboard
open fun setScrollX(value: Int)
setScrollY
Link copied to clipboard
open fun setScrollY(value: Int)
setSelected
Link copied to clipboard
open fun setSelected(selected: Boolean)
setSoundEffectsEnabled
Link copied to clipboard
open fun setSoundEffectsEnabled(soundEffectsEnabled: Boolean)
setStateListAnimator
Link copied to clipboard
open fun setStateListAnimator(stateListAnimator: StateListAnimator)
setSystemUiVisibility
Link copied to clipboard
open fun setSystemUiVisibility(visibility: Int)
setTag
Link copied to clipboard
open fun setTag(tag: Any)
setTextAlignment
Link copied to clipboard
open fun setTextAlignment(textAlignment: Int)
setTextDirection
Link copied to clipboard
open fun setTextDirection(textDirection: Int)
setTooltipText
Link copied to clipboard
open fun setTooltipText(tooltipText: CharSequence)
setTop
Link copied to clipboard
fun setTop(top: Int)
setTouchDelegate
Link copied to clipboard
open fun setTouchDelegate(delegate: TouchDelegate)
setTouchscreenBlocksFocus
Link copied to clipboard
open fun setTouchscreenBlocksFocus(touchscreenBlocksFocus: Boolean)
setTransitionGroup
Link copied to clipboard
open fun setTransitionGroup(isTransitionGroup: Boolean)
setTransitionName
Link copied to clipboard
fun setTransitionName(transitionName: String)
setTranslationX
Link copied to clipboard
open fun setTranslationX(translationX: Float)
setTranslationY
Link copied to clipboard
open fun setTranslationY(translationY: Float)
setTranslationZ
Link copied to clipboard
open fun setTranslationZ(translationZ: Float)
setVerticalFadingEdgeEnabled
Link copied to clipboard
open fun setVerticalFadingEdgeEnabled(verticalFadingEdgeEnabled: Boolean)
setVerticalScrollBarEnabled
Link copied to clipboard
open fun setVerticalScrollBarEnabled(verticalScrollBarEnabled: Boolean)
setVerticalScrollbarPosition
Link copied to clipboard
open fun setVerticalScrollbarPosition(position: Int)
setViewCacheExtension
Link copied to clipboard
open fun setViewCacheExtension(extension: RecyclerView.ViewCacheExtension)
setVisibility
Link copied to clipboard
open fun setVisibility(visibility: Int)
setWillNotCacheDrawing
Link copied to clipboard
open fun setWillNotCacheDrawing(willNotCacheDrawing: Boolean)
setWillNotDraw
Link copied to clipboard
open fun setWillNotDraw(willNotDraw: Boolean)
setX
Link copied to clipboard
open fun setX(x: Float)
setY
Link copied to clipboard
open fun setY(y: Float)
setZ
Link copied to clipboard
open fun setZ(z: Float)
shouldDelayChildPressedState
Link copied to clipboard
open fun shouldDelayChildPressedState(): Boolean
shouldShareViewPoolAcrossContext
Link copied to clipboard
open fun shouldShareViewPoolAcrossContext(): Null
showContextMenu
Link copied to clipboard
open fun showContextMenu(): Boolean
showContextMenuForChild
Link copied to clipboard
open fun showContextMenuForChild(originalView: View): Boolean
smoothScrollBy
Link copied to clipboard
open fun smoothScrollBy(dx: Int, dy: Int)
smoothScrollToPosition
Link copied to clipboard
open fun smoothScrollToPosition(position: Int)
startActionMode
Link copied to clipboard
open fun startActionMode(callback: ActionMode.Callback): ActionMode
startActionModeForChild
Link copied to clipboard
open fun startActionModeForChild(originalView: View, callback: ActionMode.Callback): ActionMode
startAnimation
Link copied to clipboard
open fun startAnimation(animation: Animation)
startDrag
Link copied to clipboard
fun startDrag(data: ClipData, shadowBuilder: View.DragShadowBuilder, myLocalState: Any, flags: Int): Boolean
startDragAndDrop
Link copied to clipboard
fun startDragAndDrop(data: ClipData, shadowBuilder: View.DragShadowBuilder, myLocalState: Any, flags: Int): Boolean
startLayoutAnimation
Link copied to clipboard
open fun startLayoutAnimation()
startNestedScroll
Link copied to clipboard
open fun startNestedScroll(axes: Int): Boolean
startViewTransition
Link copied to clipboard
open fun startViewTransition(view: View)
stopNestedScroll
Link copied to clipboard
open fun stopNestedScroll()
stopScroll
Link copied to clipboard
open fun stopScroll()
suppressLayout
Link copied to clipboard
fun suppressLayout(suppress: Boolean)
swapAdapter
Link copied to clipboard
open fun swapAdapter(adapter: RecyclerView.Adapter, removeAndRecycleExistingViews: Boolean)
open fun swapAdapter(adapter: Null, removeAndRecycleExistingViews: Null)
toString
Link copied to clipboard
open fun toString(): String
unscheduleDrawable
Link copied to clipboard
open fun unscheduleDrawable(who: Drawable, what: Runnable)
updateDragShadow
Link copied to clipboard
fun updateDragShadow(shadowBuilder: View.DragShadowBuilder)
updateViewLayout
Link copied to clipboard
open fun updateViewLayout(view: View, params: ViewGroup.LayoutParams)
willNotCacheDrawing
Link copied to clipboard
open fun willNotCacheDrawing(): Boolean
willNotDraw
Link copied to clipboard
open fun willNotDraw(): Boolean
withModels
Link copied to clipboard
fun withModels(buildModels: Null)

Properties

defaultGlobalSnapHelperFactory
Link copied to clipboard
private open var defaultGlobalSnapHelperFactory: Carousel.SnapHelperFactory
NO_VALUE_SET
Link copied to clipboard
val NO_VALUE_SET: Int
numViewsToShowOnScreen
Link copied to clipboard
private open var numViewsToShowOnScreen: Float