Rectangle copy = new Rectangle(r);  for (int i = 0; i < count; ++i)
if (myAxis == X_AXIS)
  protected View getViewAtPoint(int x, int y, Rectangle r)  {    View result = null;    int count = getViewCount();    Rectangle copy = new Rectangle(r);    for (int i = 0; i < count; ++i)      {        copy.setBounds(r);        // The next call modifies copy.        childAllocation(i, copy);        if (copy.contains(x, y))          {            // Modify r on success.            r.setBounds(copy);            result = getView(i);            break;          }      }    if (result == null && count > 0)      return getView(count - 1);    return result;  }