HoverLinearLayoutManager

open class HoverLinearLayoutManager : LinearLayoutManager

为LinearLayoutManager添加悬停/禁用滚动特性

Created by jay on 2017/12/4 上午10:57

Constructors

HoverLinearLayoutManager
Link copied to clipboard
open fun HoverLinearLayoutManager(context: Context)
HoverLinearLayoutManager
Link copied to clipboard
open fun HoverLinearLayoutManager(context: Context, orientation: Int, reverseLayout: Boolean)
HoverLinearLayoutManager
Link copied to clipboard
open fun HoverLinearLayoutManager(context: Context, attrs: AttributeSet, defStyleAttr: Int, defStyleRes: Int)

Types

SavedState
Link copied to clipboard
open class SavedState : Parcelable

Functions

canScrollHorizontally
Link copied to clipboard
open fun canScrollHorizontally(): Boolean
canScrollVertically
Link copied to clipboard
open fun canScrollVertically(): Boolean
computeHorizontalScrollExtent
Link copied to clipboard
open fun computeHorizontalScrollExtent(state: RecyclerView.State): Int
computeHorizontalScrollOffset
Link copied to clipboard
open fun computeHorizontalScrollOffset(state: RecyclerView.State): Int
computeHorizontalScrollRange
Link copied to clipboard
open fun computeHorizontalScrollRange(state: RecyclerView.State): Int
computeScrollVectorForPosition
Link copied to clipboard
open fun computeScrollVectorForPosition(targetPosition: Int): PointF
computeVerticalScrollExtent
Link copied to clipboard
open fun computeVerticalScrollExtent(state: RecyclerView.State): Int
computeVerticalScrollOffset
Link copied to clipboard
open fun computeVerticalScrollOffset(state: RecyclerView.State): Int
computeVerticalScrollRange
Link copied to clipboard
open fun computeVerticalScrollRange(state: RecyclerView.State): Int
findFirstCompletelyVisibleItemPosition
Link copied to clipboard
open fun findFirstCompletelyVisibleItemPosition(): Int
findFirstVisibleItemPosition
Link copied to clipboard
open fun findFirstVisibleItemPosition(): Int
findLastCompletelyVisibleItemPosition
Link copied to clipboard
open fun findLastCompletelyVisibleItemPosition(): Int
findLastVisibleItemPosition
Link copied to clipboard
open fun findLastVisibleItemPosition(): Int
hasHover
Link copied to clipboard
open fun hasHover(): Boolean
isHover
Link copied to clipboard
open fun isHover(view: View): Boolean
Returns true if {@code view} is the current hover header.
onAdapterChanged
Link copied to clipboard
open fun onAdapterChanged(oldAdapter: RecyclerView.Adapter, newAdapter: RecyclerView.Adapter)
onAttachedToWindow
Link copied to clipboard
open fun onAttachedToWindow(view: RecyclerView)
onFocusSearchFailed
Link copied to clipboard
open fun onFocusSearchFailed(focused: View, focusDirection: Int, recycler: RecyclerView.Recycler, state: RecyclerView.State): View
onLayoutChildren
Link copied to clipboard
open fun onLayoutChildren(recycler: RecyclerView.Recycler, state: RecyclerView.State)
onRestoreInstanceState
Link copied to clipboard
open fun onRestoreInstanceState(state: Parcelable)
onSaveInstanceState
Link copied to clipboard
open fun onSaveInstanceState(): Parcelable
scrollHorizontallyBy
Link copied to clipboard
open fun scrollHorizontallyBy(dx: Int, recycler: RecyclerView.Recycler, state: RecyclerView.State): Int
scrollToPosition
Link copied to clipboard
open fun scrollToPosition(position: Int)
scrollToPositionWithOffset
Link copied to clipboard
open fun scrollToPositionWithOffset(position: Int, offset: Int)
scrollVerticallyBy
Link copied to clipboard
open fun scrollVerticallyBy(dy: Int, recycler: RecyclerView.Recycler, state: RecyclerView.State): Int
setHoverTranslationX
Link copied to clipboard
open fun setHoverTranslationX(translationX: Float)
Offsets the horizontal location of the hover header relative to the its default position.
setHoverTranslationY
Link copied to clipboard
open fun setHoverTranslationY(translationY: Float)
Offsets the vertical location of the hover header relative to the its default position.
smoothScrollToPosition
Link copied to clipboard
open fun smoothScrollToPosition(recyclerView: RecyclerView, state: RecyclerView.State, position: Int)

Properties

scrollEnabled
Link copied to clipboard
private open var scrollEnabled: Boolean