public int getViewIndexAtPoint?( float x, float y, Shape a)
Fetches the child view index at the given point. This is called by the various View methods that need to calculate which child to forward a message to. This should be called by a block synchronized on this object, and would typically be followed with one or more calls to getChildAllocation that should also be in the synchronized block.
-
Parameters:
-
x - the X coordinate >= 0
-
y - the Y coordinate >= 0
-
a - the allocation to the View
-
Returns:
- the nearest child index
|