DpadRecyclerView

open class DpadRecyclerView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.dpadRecyclerViewStyle) : RecyclerView

A RecyclerView that scrolls to items on DPAD key events.

Items are aligned based on the following configurations:

This DpadRecyclerView will only scroll automatically when it has focus and receives DPAD key events. To scroll manually to any given item, check setSelectedPosition, setSelectedPositionSmooth and other related methods.

When using wrap_content for the main scrolling direction, DpadRecyclerView will still measure itself to match its parent's size, but will layout all items at once without any recycling.

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.dpadRecyclerViewStyle)

Types

Link copied to clipboard

Listener for intercepting key dispatch events.

Link copied to clipboard

Listener for receiving notifications of a completed layout pass by the LayoutManager of this RecyclerView

Link copied to clipboard

Listener for intercepting generic motion dispatch events.

Link copied to clipboard

Listener for intercepting touch dispatch events

Link copied to clipboard

Listener for intercepting unhandled key events.

Link copied to clipboard

Defines behavior of duration and interpolator for smoothScrollBy.

Functions

Link copied to clipboard
Link copied to clipboard
open fun addFocusables(p0: ArrayList<View>, p1: Int)
open override fun addFocusables(p0: ArrayList<View>, p1: Int, p2: Int)
Link copied to clipboard
Link copied to clipboard

Registers a callback to be invoked when an item of this DpadRecyclerView has been laid out.

Link copied to clipboard

Registers a callback to be invoked when this RecyclerView loses focus

Link copied to clipboard

Registers a callback to be invoked when this RecyclerView completes a layout pass.

Link copied to clipboard

Registers a callback to be invoked when an item has been focused

Link copied to clipboard

Registers a callback to be invoked when an item has been selected

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun addTouchables(p0: ArrayList<View>)
Link copied to clipboard
open fun addView(p0: View)
open override fun addView(p0: View, p1: ViewGroup.LayoutParams)
open fun addView(p0: View, p1: Int)
open fun addView(p0: View, p1: Int, p2: ViewGroup.LayoutParams)
open fun addView(p0: View, p1: Int, p2: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun bringChildToFront(p0: View)
Link copied to clipboard
open fun bringToFront()
Link copied to clipboard
Link copied to clipboard
open fun buildLayer()
Link copied to clipboard
open fun callOnClick(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun cancelLongPress()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun childDrawableStateChanged(p0: View)
Link copied to clipboard
open override fun childHasTransientStateChanged(p0: View, p1: Boolean)
Link copied to clipboard
open fun clearAnimation()
Link copied to clipboard
open override fun clearChildFocus(p0: View)
Link copied to clipboard
Link copied to clipboard
open override fun clearFocus()
Link copied to clipboard

Clears all listeners added by addOnChildLaidOutListener

Link copied to clipboard

Clears all existing listeners added by addOnFocusLostListener

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Clears all existing listeners added by addOnViewFocusedListener

Link copied to clipboard

Clears all existing listeners added by addOnViewHolderSelectedListener

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun computeHorizontalScrollExtent(): Int
Link copied to clipboard
open override fun computeHorizontalScrollOffset(): Int
Link copied to clipboard
open override fun computeHorizontalScrollRange(): Int
Link copied to clipboard
open fun computeScroll()
Link copied to clipboard
open override fun computeVerticalScrollExtent(): Int
Link copied to clipboard
open override fun computeVerticalScrollOffset(): Int
Link copied to clipboard
open override fun computeVerticalScrollRange(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun dispatchDisplayHint(p0: Int)
Link copied to clipboard
open override fun dispatchDragEvent(p0: DragEvent): Boolean
Link copied to clipboard
open override fun dispatchDrawableHotspotChanged(p0: Float, p1: Float)
Link copied to clipboard
open override fun dispatchFinishTemporaryDetach()
Link copied to clipboard
override fun dispatchKeyEvent(event: KeyEvent?): Boolean
Link copied to clipboard
open override fun dispatchKeyEventPreIme(p0: KeyEvent): Boolean
Link copied to clipboard
open override fun dispatchKeyShortcutEvent(p0: KeyEvent): Boolean
Link copied to clipboard
open override fun dispatchNestedFling(p0: Float, p1: Float, p2: Boolean): Boolean
Link copied to clipboard
open override fun dispatchNestedPreFling(p0: Float, p1: Float): Boolean
Link copied to clipboard
open override fun dispatchNestedPreScroll(p0: Int, p1: Int, p2: IntArray?, p3: IntArray?): Boolean
open override fun dispatchNestedPreScroll(p0: Int, p1: Int, p2: IntArray?, p3: IntArray?, p4: Int): Boolean
Link copied to clipboard
open override fun dispatchNestedScroll(p0: Int, p1: Int, p2: Int, p3: Int, p4: IntArray?): Boolean
open override fun dispatchNestedScroll(p0: Int, p1: Int, p2: Int, p3: Int, p4: IntArray?, p5: Int): Boolean
override fun dispatchNestedScroll(p0: Int, p1: Int, p2: Int, p3: Int, p4: IntArray?, p5: Int, @NonNull p6: IntArray)
Link copied to clipboard
open override fun dispatchPointerCaptureChanged(p0: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun dispatchSetActivated(p0: Boolean)
Link copied to clipboard
open override fun dispatchSetSelected(p0: Boolean)
Link copied to clipboard
open override fun dispatchStartTemporaryDetach()
Link copied to clipboard
open override fun dispatchSystemUiVisibilityChanged(p0: Int)
Link copied to clipboard
open override fun dispatchTouchEvent(event: MotionEvent): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun dispatchUnhandledMove(p0: View, p1: Int): Boolean
Link copied to clipboard
open override fun dispatchWindowFocusChanged(p0: Boolean)
Link copied to clipboard
open override fun dispatchWindowVisibilityChanged(p0: Int)
Link copied to clipboard
open override fun draw(@NonNull p0: Canvas)
Link copied to clipboard
Link copied to clipboard
open override fun drawChild(@NonNull p0: Canvas, p1: View, p2: Long): Boolean
Link copied to clipboard

Enables fading out the max edge to transparent.

Link copied to clipboard

Enables fading out the min edge to transparent.

Link copied to clipboard
open fun endViewTransition(p0: View)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun findFocus(): View
Link copied to clipboard
fun <T : View> findViewById(p0: Int): T
Link copied to clipboard
open override fun findViewsWithText(p0: ArrayList<View>, p1: CharSequence, p2: Int)
Link copied to clipboard
fun <T : View> findViewWithTag(p0: Any): T
Link copied to clipboard
open fun fling(p0: Int, p1: Int): Boolean
Link copied to clipboard
open override fun focusableViewAvailable(p0: View)
Link copied to clipboard
open override fun focusSearch(p0: View, p1: Int): View
override fun focusSearch(direction: Int): View?
Link copied to clipboard
Link copied to clipboard
open fun forceLayout()
Link copied to clipboard
open override fun gatherTransparentRegion(p0: Region?): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getAlpha(): Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getAutofillType(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun getBaseline(): Int
Link copied to clipboard
fun getBottom(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getChildAt(p0: Int): View
Link copied to clipboard
open fun getChildCount(): Int
Link copied to clipboard
Link copied to clipboard
open fun getChildItemId(@NonNull p0: View): Long
Link copied to clipboard
Link copied to clipboard
open fun getChildPosition(@NonNull p0: View): Int
Link copied to clipboard
Link copied to clipboard
open override fun getChildVisibleRect(p0: View, p1: Rect, p2: Point): Boolean
Link copied to clipboard
open fun getClipBounds(): Rect
open fun getClipBounds(p0: Rect): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun getClipToPadding(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getDisplay(): Display
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getDrawingRect(p0: Rect)
Link copied to clipboard
open fun getDrawingTime(): Long
Link copied to clipboard
open fun getElevation(): Float
Link copied to clipboard
open fun getExplicitStyle(): Int
Link copied to clipboard
Link copied to clipboard
open fun getFocusable(): Int
Link copied to clipboard
Link copied to clipboard
open fun getFocusedChild(): View
Link copied to clipboard
open fun getFocusedRect(p0: Rect)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getHandler(): Handler
Link copied to clipboard
Link copied to clipboard
fun getHeight(): Int
Link copied to clipboard
open fun getHitRect(p0: Rect)
Link copied to clipboard
Link copied to clipboard
open fun getId(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getLabelFor(): Int
Link copied to clipboard
open fun getLayerType(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getLayoutMode(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getLeft(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getMatrix(): Matrix
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getMinimumHeight(): Int
Link copied to clipboard
open fun getMinimumWidth(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getNextFocusUpId(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun getOverlay(): ViewGroupOverlay
Link copied to clipboard
Link copied to clipboard
open fun getPaddingBottom(): Int
Link copied to clipboard
open fun getPaddingEnd(): Int
Link copied to clipboard
open fun getPaddingLeft(): Int
Link copied to clipboard
open fun getPaddingRight(): Int
Link copied to clipboard
open fun getPaddingStart(): Int
Link copied to clipboard
open fun getPaddingTop(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getPivotX(): Float
Link copied to clipboard
open fun getPivotY(): Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getRight(): Int
Link copied to clipboard
open fun getRootView(): View
Link copied to clipboard
Link copied to clipboard
open fun getRotation(): Float
Link copied to clipboard
open fun getRotationX(): Float
Link copied to clipboard
open fun getRotationY(): Float
Link copied to clipboard
open fun getScaleX(): Float
Link copied to clipboard
open fun getScaleY(): Float
Link copied to clipboard
Link copied to clipboard
open fun getScrollBarSize(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getScrollState(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getSolidColor(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getTag(): Any
open fun getTag(p0: Int): Any
Link copied to clipboard
open fun getTextAlignment(): Int
Link copied to clipboard
open fun getTextDirection(): Int
Link copied to clipboard
Link copied to clipboard
fun getTop(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getVisibility(): Int
Link copied to clipboard
fun getWidth(): Int
Link copied to clipboard
open fun getWindowId(): WindowId
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getX(): Float
Link copied to clipboard
open fun getY(): Float
Link copied to clipboard
open fun getZ(): Float
Link copied to clipboard
Link copied to clipboard
open fun hasFixedSize(): Boolean
Link copied to clipboard
open override fun hasFocus(): Boolean
Link copied to clipboard
open fun hasFocusable(): Boolean
Link copied to clipboard
open override fun hasNestedScrollingParent(): Boolean
open override fun hasNestedScrollingParent(p0: Int): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun hasTransientState(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun indexOfChild(p0: View): Int
Link copied to clipboard
open fun invalidate()
open fun invalidate(p0: Rect)
open fun invalidate(p0: Int, p1: Int, p2: Int, p3: Int)
Link copied to clipboard
override fun invalidateChild(p0: View, p1: Rect)
Link copied to clipboard
open override fun invalidateChildInParent(p0: IntArray, p1: Rect): ViewParent
Link copied to clipboard
open override fun invalidateDrawable(p0: Drawable)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isActivated(): Boolean
Link copied to clipboard
open fun isAnimating(): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun isAttachedToWindow(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun isClickable(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isCredential(): Boolean
Link copied to clipboard
open fun isDirty(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun isEnabled(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isFocused(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isHovered(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isInEditMode(): Boolean
Link copied to clipboard
open fun isInLayout(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun isLaidOut(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Returns if views are laid out from the opposite direction of the layout.

Link copied to clipboard
override fun isLayoutSuppressed(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun isNestedScrollingEnabled(): Boolean
Link copied to clipboard
open fun isOpaque(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun isPivotSet(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun isPressed(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isSelected(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun isShown(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun jumpDrawablesToCurrentState()
Link copied to clipboard
Link copied to clipboard
override fun layout(p0: Int, p1: Int, p2: Int, p3: Int)
Link copied to clipboard
fun measure(p0: Int, p1: Int)
Link copied to clipboard
open fun nestedScrollBy(p0: Int, p1: Int)
Link copied to clipboard
open override fun notifySubtreeAccessibilityStateChanged(p0: View, p1: View, p2: Int)
Link copied to clipboard
Link copied to clipboard
open fun offsetChildrenVertical(@Px p0: Int)
Link copied to clipboard
open fun offsetLeftAndRight(p0: Int)
Link copied to clipboard
open fun offsetTopAndBottom(p0: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onDescendantInvalidated(p0: View, p1: View)
Link copied to clipboard
Link copied to clipboard
open override fun onDraw(@NonNull p0: Canvas)
Link copied to clipboard
open fun onDrawForeground(p0: Canvas)
Link copied to clipboard
Link copied to clipboard
open override fun onGenericMotionEvent(p0: MotionEvent): Boolean
Link copied to clipboard
open fun onHoverChanged(p0: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onInterceptTouchEvent(p0: MotionEvent): Boolean
Link copied to clipboard
open override fun onKeyDown(p0: Int, p1: KeyEvent): Boolean
Link copied to clipboard
open override fun onKeyLongPress(p0: Int, p1: KeyEvent): Boolean
Link copied to clipboard
open override fun onKeyMultiple(p0: Int, p1: Int, p2: KeyEvent): Boolean
Link copied to clipboard
open fun onKeyPreIme(p0: Int, p1: KeyEvent): Boolean
Link copied to clipboard
open fun onKeyShortcut(p0: Int, p1: KeyEvent): Boolean
Link copied to clipboard
open override fun onKeyUp(p0: Int, p1: KeyEvent): Boolean
Link copied to clipboard
open override fun onNestedFling(p0: View, p1: Float, p2: Float, p3: Boolean): Boolean
Link copied to clipboard
open override fun onNestedPreFling(p0: View, p1: Float, p2: Float): Boolean
Link copied to clipboard
open override fun onNestedPrePerformAccessibilityAction(p0: View, p1: Int, p2: Bundle?): Boolean
Link copied to clipboard
open override fun onNestedPreScroll(p0: View, p1: Int, p2: Int, p3: IntArray)
Link copied to clipboard
open override fun onNestedScroll(p0: View, p1: Int, p2: Int, p3: Int, p4: Int)
Link copied to clipboard
open override fun onNestedScrollAccepted(p0: View, p1: View, p2: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onResolvePointerIcon(p0: MotionEvent, p1: Int): PointerIcon
Link copied to clipboard
override fun onRtlPropertiesChanged(layoutDirection: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onScrolled(@Px p0: Int, @Px p1: Int)
Link copied to clipboard
open override fun onScrollStateChanged(state: Int)
Link copied to clipboard
open override fun onStartNestedScroll(p0: View, p1: View, p2: Int): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun onStopNestedScroll(p0: View)
Link copied to clipboard
open override fun onTouchEvent(p0: MotionEvent): Boolean
Link copied to clipboard
Link copied to clipboard
open fun onViewAdded(p0: View)
Link copied to clipboard
open fun onViewRemoved(p0: View)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun performClick(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun playSoundEffect(p0: Int)
Link copied to clipboard
open fun post(p0: Runnable): Boolean
Link copied to clipboard
open fun postDelayed(p0: Runnable, p1: Long): Boolean
Link copied to clipboard
open fun postInvalidate()
open fun postInvalidate(p0: Int, p1: Int, p2: Int, p3: Int)
Link copied to clipboard
open fun postInvalidateDelayed(p0: Long, p1: Int, p2: Int, p3: Int, p4: Int)
Link copied to clipboard
open fun postInvalidateOnAnimation(p0: Int, p1: Int, p2: Int, p3: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun recomputeViewAttributes(p0: View)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun removeAllViews()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Removes a listener added by addOnFocusLostListener

Link copied to clipboard
Link copied to clipboard
override fun removeView(view: View)
Link copied to clipboard
override fun removeViewAt(index: Int)
Link copied to clipboard
open fun removeViewInLayout(p0: View)
Link copied to clipboard
open fun removeViews(p0: Int, p1: Int)
Link copied to clipboard
open fun removeViewsInLayout(p0: Int, p1: Int)
Link copied to clipboard
Link copied to clipboard
open override fun requestChildFocus(p0: View, p1: View)
Link copied to clipboard
open override fun requestChildRectangleOnScreen(p0: View, p1: Rect, p2: Boolean): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun requestFocus(p0: Int, p1: Rect): Boolean
Link copied to clipboard
Link copied to clipboard
override fun requestLayout()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun requestTransparentRegion(p0: View)
Link copied to clipboard
fun <T : View> requireViewById(p0: Int): T & Any
Link copied to clipboard
open fun resetPivot()
Link copied to clipboard
open override fun restoreDefaultFocus(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun scheduleDrawable(p0: Drawable, p1: Runnable, p2: Long)
Link copied to clipboard
Link copied to clipboard
open override fun scrollBy(p0: Int, p1: Int)
Link copied to clipboard
open override fun scrollTo(p0: Int, p1: Int)
Link copied to clipboard
open fun scrollToPosition(p0: Int)
Link copied to clipboard
open override fun sendAccessibilityEvent(p0: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setActivated(p0: Boolean)
Link copied to clipboard
open override fun setAdapter(adapter: RecyclerView.Adapter<*>?)
Link copied to clipboard
Link copied to clipboard
fun setAlignmentLookup(lookup: AlignmentLookup?, smooth: Boolean = false)

Set a custom alignment configuration for each ViewHolder. Check AlignmentLookup. This is only supported in linear layouts

Link copied to clipboard
fun setAlignments(parent: ParentAlignment, child: ChildAlignment, smooth: Boolean)

Updates both parent and child alignments

Link copied to clipboard
Link copied to clipboard
open fun setAlpha(p0: Float)
Link copied to clipboard
open fun setAnimation(p0: Animation)
Link copied to clipboard
Link copied to clipboard
open fun setAnimationMatrix(p0: Matrix?)
Link copied to clipboard
open fun setAutofillHints(vararg p0: String)
Link copied to clipboard
open fun setAutofillId(p0: AutofillId?)
Link copied to clipboard
Link copied to clipboard
open fun setBackground(p0: Drawable)
Link copied to clipboard
open fun setBackgroundColor(p0: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setBottom(p0: Int)
Link copied to clipboard
open fun setCameraDistance(p0: Float)
Link copied to clipboard
fun setChildAlignment(alignment: ChildAlignment, smooth: Boolean = false)

Updates the child alignment configuration for child views of this RecyclerView

Link copied to clipboard
Link copied to clipboard
open fun setClickable(p0: Boolean)
Link copied to clipboard
open fun setClipBounds(p0: Rect)
Link copied to clipboard
open fun setClipChildren(p0: Boolean)
Link copied to clipboard
Link copied to clipboard
open override fun setClipToPadding(p0: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setElevation(p0: Float)
Link copied to clipboard
open fun setEnabled(p0: Boolean)
Link copied to clipboard

Sets the strategy for calculating extra layout space.

Link copied to clipboard
override fun setFadingEdgeLength(length: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setFocusable(p0: Boolean)
open fun setFocusable(p0: Int)
Link copied to clipboard

Changes how RecyclerView will find the next focusable view. Check FocusableDirection for all supported directions. Default is FocusableDirection.STANDARD

Link copied to clipboard
Link copied to clipboard

Enables or disables the default rule of drawing the selected view after all other views. Default is true

Link copied to clipboard
Link copied to clipboard
fun setFocusOutAllowed(throughFront: Boolean, throughBack: Boolean)

Sets whether focus can move out from the front and/or back of the RecyclerView.

Link copied to clipboard
fun setFocusOutSideAllowed(throughFront: Boolean, throughBack: Boolean)

Sets whether focus can move out from the opposite front and/or back of the RecyclerView

Link copied to clipboard

Disables or enables focus search.

Link copied to clipboard

Disables or enables focus search while RecyclerView is animating item changes. See RecyclerView.isAnimating.

Link copied to clipboard
Link copied to clipboard
open fun setForeground(p0: Drawable)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setGravity(gravity: Int)

Sets the gravity used for child view positioning. Defaults to Gravity.TOP for horizontal orientation and Gravity.START for vertical orientation.

Link copied to clipboard
open fun setHandwritingBoundsOffsets(p0: Float, p1: Float, p2: Float, p3: Float)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
override fun setHasFixedSize(hasFixedSize: Boolean)
Link copied to clipboard

Controls the return value of View.hasOverlappingRendering.

Link copied to clipboard
Link copied to clipboard
open fun setHovered(p0: Boolean)
Link copied to clipboard
open fun setId(p0: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Sets the number of items to prefetch in RecyclerView.LayoutManager.collectInitialPrefetchPositions, which defines how many inner items should be prefetched when this RecyclerView is nested inside another RecyclerView.

Link copied to clipboard
open fun setIsCredential(p0: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setItemEdgeSpacing(@Px spacing: Int)

Sets the spacing between the min end and the first item, and the last item and the min edge. This is equivalent to calling both setItemMinEdgeSpacing and setItemMaxEdgeSpacing with the same value.

Link copied to clipboard
fun setItemMaxEdgeSpacing(@Px spacing: Int)

Set the spacing between the max edge and the last item

Link copied to clipboard
fun setItemMinEdgeSpacing(@Px spacing: Int)

Set the spacing between the min edge and the first item

Link copied to clipboard
fun setItemSpacing(@Px spacing: Int)

Set the spacing between different items

Link copied to clipboard
Link copied to clipboard
open fun setKeepScreenOn(p0: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun setLabelFor(p0: Int)
Link copied to clipboard
open fun setLayerPaint(p0: Paint?)
Link copied to clipboard
open fun setLayerType(p0: Int, p1: Paint?)
Link copied to clipboard
Link copied to clipboard
open fun setLayoutDirection(p0: Int)
Link copied to clipboard

Allows disabling the layout of children. All children are removed if layout is disabled

Link copied to clipboard
open fun setLayoutFrozen(p0: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun setLayoutMode(p0: Int)
Link copied to clipboard
Link copied to clipboard
open override fun setLayoutTransition(p0: LayoutTransition)
Link copied to clipboard

By default, DpadRecyclerView does not skip layout requests during scrolling, but you might want to do this because of the following:

Link copied to clipboard
fun setLeft(p0: Int)
Link copied to clipboard
fun setLeftTopRightBottom(p0: Int, p1: Int, p2: Int, p3: Int)
Link copied to clipboard
Link copied to clipboard

Updates the loop direction used by this DpadRecyclerView. By default, the layout does not loop around the items

Link copied to clipboard

Sets the length of the fading effect applied to the max edge in pixels

Link copied to clipboard

Sets the length of the fading effect applied to the min edge in pixels

Link copied to clipboard

Sets the length of the fading effect applied to the min edge in pixels

Link copied to clipboard

Sets the start position of the fading effect applied to the min edge in pixels. Default is 0, which means that the fading effect starts from the min edge (left or top)

Link copied to clipboard
open fun setMinimumHeight(p0: Int)
Link copied to clipboard
open fun setMinimumWidth(p0: Int)
Link copied to clipboard
open override fun setNestedScrollingEnabled(p0: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun setNextFocusDownId(p0: Int)
Link copied to clipboard
Link copied to clipboard
open fun setNextFocusLeftId(p0: Int)
Link copied to clipboard
open fun setNextFocusRightId(p0: Int)
Link copied to clipboard
open fun setNextFocusUpId(p0: Int)
Link copied to clipboard

Registers a callback to be invoked when an item of this DpadRecyclerView has been laid out.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Set a listener that intercepts key events received in dispatchKeyEvent

Link copied to clipboard
Link copied to clipboard

Sets the generic motion intercept listener.

Link copied to clipboard

Sets a listener for intercepting touch events

Link copied to clipboard
Link copied to clipboard

Set a listener that intercepts unhandled key events from dispatchKeyEvent

Link copied to clipboard
fun setOrientation(orientation: Int)

Updates the orientation of the PivotLayoutManager used by this RecyclerView

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setOverScrollMode(p0: Int)
Link copied to clipboard
open fun setPadding(p0: Int, p1: Int, p2: Int, p3: Int)
Link copied to clipboard
open fun setPaddingRelative(p0: Int, p1: Int, p2: Int, p3: Int)
Link copied to clipboard
fun setParentAlignment(alignment: ParentAlignment, smooth: Boolean = false)

Updates the parent alignment configuration for child views of this RecyclerView

Link copied to clipboard
Link copied to clipboard
open fun setPivotX(p0: Float)
Link copied to clipboard
open fun setPivotY(p0: Float)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setPressed(p0: Boolean)
Link copied to clipboard

Set whether the LayoutManager of this RecyclerView will recycle its children when this RecyclerView is detached from the window.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setReverseLayout(reverseLayout: Boolean)

Used to reverse item traversal and layout order. This behaves similar to the layout change for RTL views. When set to true, first item is laid out at the end of the UI, second item is laid out before it etc.

Link copied to clipboard
fun setRight(p0: Int)
Link copied to clipboard
open fun setRotation(p0: Float)
Link copied to clipboard
open fun setRotationX(p0: Float)
Link copied to clipboard
open fun setRotationY(p0: Float)
Link copied to clipboard
open fun setSaveEnabled(p0: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun setScaleX(p0: Float)
Link copied to clipboard
open fun setScaleY(p0: Float)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setScrollBarSize(p0: Int)
Link copied to clipboard
open fun setScrollBarStyle(p0: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Enables or disables scrolling. When this is disabled, DpadRecyclerView can still change focus on DPAD events unless setFocusSearchDisabled is also set.

Link copied to clipboard
open fun setScrollIndicators(p0: Int)
open fun setScrollIndicators(p0: Int, p1: Int)
Link copied to clipboard
Link copied to clipboard
open fun setScrollX(p0: Int)
Link copied to clipboard
open fun setScrollY(p0: Int)
Link copied to clipboard
open fun setSelected(p0: Boolean)
Link copied to clipboard
fun setSelectedPosition(position: Int)

Changes the selected item immediately without any scroll animation.

fun setSelectedPosition(position: Int, task: ViewHolderTask)

Performs a task on a ViewHolder at a given position after scrolling to it.

Link copied to clipboard

Changes the selected item and runs an animation to scroll to the target position.

Performs a task on a ViewHolder at a given position after scrolling to it.

Link copied to clipboard
fun setSelectedSubPosition(subPosition: Int)

Changes the sub selected view immediately without any scroll animation.

fun setSelectedSubPosition(position: Int, subPosition: Int)

Changes the main selection and sub selected view immediately without any scroll animation.

fun setSelectedSubPosition(position: Int, subPosition: Int, task: ViewHolderTask)

Performs a task on a ViewHolder at a given position and sub position after scrolling to it.

Link copied to clipboard
fun setSelectedSubPositionSmooth(position: Int, subPosition: Int)

Changes the sub selected view and runs and animation to scroll to it.

fun setSelectedSubPositionSmooth(position: Int, subPosition: Int, task: ViewHolderTask)

Performs a task on a ViewHolder at a given position and sub position after scrolling to it.

Link copied to clipboard

Enable or disable smooth scrolling to new focused position. By default, this is set to true. When set to false, RecyclerView will scroll immediately to the focused view without any animation.

Link copied to clipboard
Link copied to clipboard

Whenever the user triggers a focus change via a key event, DpadRecyclerView will check if it already has max number of pending alignment changes before dispatching focus to the next view.

Link copied to clipboard

When the user holds down a key, a lot of key events will be generated by the system. These events are generated a lot faster than this DpadRecyclerView can scroll, so these events need to be cached until the user stops pressing the key.

Link copied to clipboard
fun setSmoothScrollSpeedFactor(smoothScrollSpeedFactor: Float)

Set how slow the smooth scroller should run. Example:

Link copied to clipboard
Link copied to clipboard
fun setSpanCount(spans: Int)

Updates the number of spans of the PivotLayoutManager used by this RecyclerView.

Link copied to clipboard

Updates the DpadSpanSizeLookup used by the layout manager of this RecyclerView.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setTag(p0: Any)
open fun setTag(p0: Int, p1: Any)
Link copied to clipboard
open fun setTextAlignment(p0: Int)
Link copied to clipboard
open fun setTextDirection(p0: Int)
Link copied to clipboard
Link copied to clipboard
fun setTop(p0: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setTranslationX(p0: Float)
Link copied to clipboard
open fun setTranslationY(p0: Float)
Link copied to clipboard
open fun setTranslationZ(p0: Float)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setVisibility(p0: Int)
Link copied to clipboard
Link copied to clipboard
override fun setWillNotDraw(willNotDraw: Boolean)
Link copied to clipboard
open fun setX(p0: Float)
Link copied to clipboard
open fun setY(p0: Float)
Link copied to clipboard
open fun setZ(p0: Float)
Link copied to clipboard
open fun showContextMenu(p0: Float, p1: Float): Boolean
Link copied to clipboard
open override fun showContextMenuForChild(p0: View): Boolean
open override fun showContextMenuForChild(p0: View, p1: Float, p2: Float): Boolean
Link copied to clipboard
open fun smoothScrollBy(@Px p0: Int, @Px p1: Int, @Nullable p2: Interpolator?, p3: Int)
override fun smoothScrollBy(dx: Int, dy: Int)
override fun smoothScrollBy(dx: Int, dy: Int, interpolator: Interpolator?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun startNestedScroll(p0: Int): Boolean
open override fun startNestedScroll(axes: Int, type: Int): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun stopNestedScroll()
open override fun stopNestedScroll(p0: Int)
Link copied to clipboard
open fun stopScroll()
Link copied to clipboard
override fun suppressLayout(p0: Boolean)
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun unscheduleDrawable(p0: Drawable, p1: Runnable)
Link copied to clipboard
Link copied to clipboard
open override fun updateViewLayout(p0: View, p1: ViewGroup.LayoutParams)
Link copied to clipboard
Link copied to clipboard
open fun willNotDraw(): Boolean