public interface

ChildViewFinder

com.shinobicontrols.grids.supplement.ChildViewFinder
Known Indirect Subclasses

Class Overview

Defines the way child views are searched for in a RecyclerView. This is most commonly used in conjunction with handling user gestures.

For example, given a point on screen that the user has touched, you may wish to include the area the gridlines take up in your search returning the child nearest to the touch point. Conversely, you may wish to only return views that are directly under the touch point.

Summary

Public Methods
abstract View findChildViewUnder(GridRecyclerView gridRecyclerView, float x, float y)

Returns the child View of the RecyclerView that corresponds to the given X and Y co-ordinates.

Public Methods

public abstract View findChildViewUnder (GridRecyclerView gridRecyclerView, float x, float y)

Returns the child View of the RecyclerView that corresponds to the given X and Y co-ordinates. If no child View is found null should be returned.

This method defines the way in which the child View is searched for and particular implementations will search for child views in different ways.

Parameters
gridRecyclerView the GridRecyclerView in which to search for a child View for the given X and Y co-ordinates
x the X co-ordinate at which to search for a child View
y the Y co-ordinate at which to search for a child View
Returns
  • the child View of recyclerView that corresponds to the X and Y co-ordinates, or null if no child is found.