RecyclerView smoothScroll to position in the center. android
<p>I am using a horizontal layout manager for my <code>RecyclerView</code>.
I need to make <code>RecyclerView</code> in the next way: when click on some item - make smoothScrool to that position and put that item in the center of <code>RecyclerView</code> (if it possible, for example, 10 item from 20).</p>
<p>So, I have no problem with <code>smoothScrollToPosition()</code>, but how to put item than in the center of <code>RecyclerView</code>???</p>
<p>Thanks!</p>