public class

DirectlyUnderChildViewFinder

extends Object
implements ChildViewFinder
java.lang.Object
   ↳ com.shinobicontrols.grids.supplement.DirectlyUnderChildViewFinder

Class Overview

This ChildViewFinder simply checks for a child View under the given X and Y co-ordinates and returns the top most View found. If the X and Y co-ordinates are over a gridline, or some other android.support.v7.widget.RecyclerView.ItemDecoration, null will be returned.

Summary

Public Constructors
DirectlyUnderChildViewFinder()
Public Methods
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.

[Expand]
Inherited Methods
From class java.lang.Object
From interface com.shinobicontrols.grids.supplement.ChildViewFinder

Public Constructors

public DirectlyUnderChildViewFinder ()

Public Methods

public 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.