PagedSmoothScroller

class PagedSmoothScroller
kotlin.Any
   ↳ androidx.car.widget.PagedSmoothScroller

Custom LinearSmoothScroller that has:

  • Custom control over the speed of scrolls.
  • Scrolling that snaps to start of a child view.

Summary

Public constructors
<init>(context: Context!)

Protected methods
Int

Float

Int

Unit
onTargetFound(targetView: View!, state: State!, action: Action!)

Public constructors

<init>

PagedSmoothScroller(context: Context!)

Protected methods

calculateTimeForDeceleration

protected fun calculateTimeForDeceleration(dx: Int): Int

calculateSpeedPerPixel

protected fun calculateSpeedPerPixel(displayMetrics: DisplayMetrics!): Float

getVerticalSnapPreference

protected fun getVerticalSnapPreference(): Int

onTargetFound

protected fun onTargetFound(targetView: View!, state: State!, action: Action!): Unit