HoverGridLayoutManager

open class HoverGridLayoutManager : GridLayoutManager

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

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

Constructors

HoverGridLayoutManager
Link copied to clipboard
open fun HoverGridLayoutManager(context: Context, spanCount: Int)
HoverGridLayoutManager
Link copied to clipboard
open fun HoverGridLayoutManager(context: Context, spanCount: Int, orientation: Int, reverseLayout: Boolean)
HoverGridLayoutManager
Link copied to clipboard
open fun HoverGridLayoutManager(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
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.

Properties

scrollEnabled
Link copied to clipboard
private open var scrollEnabled: Boolean