getId() on view obtained from recyclerView.findChildViewUnder(e.getX(), e.getY()) is -1
<p>I've trying to obtain the view.getId(), from the view obtained using  <code>recyclerView.findChildViewUnder(e.getX(), e.getY())</code>, but it always returns -1</p>

<p>Here's the relevant code:</p>

<pre><code>        @Override
        public boolean onSingleTapConfirmed(MotionEvent e) {
            View view = recyclerView.findChildViewUnder(e.getX(), e.getY());
            if (view !=null) {
                onClick(view);
            }
            return super.onSingleTapConfirmed(e);
        }
</code></pre>

<p>Here's how I register the gesturelistener:</p>

<p><code>gestureDetector =  new GestureDetectorCompat(getActivity(), new RecyclerViewGestureListener());</code></p>

<p>I try to obtain the view's id in <code>onClick(View view)</code></p>