title: Android - RecyclerView list equal spacing between items and parent
body: <p>I have trouble figuring out how to set the padding and margin for my recycler view in the XML file to achieve this behaviour maintaining equal spacing between recycler list items and the same spacing to the parent.</p>
  
  <p>ParenStart &lt;-10dp-> ListItem &lt;-10dp-> ListItem &lt;-10dp-> ParentEnd</p>
  
  <p>And at the same time be able to scroll full width of the screen (parent).</p>
  
  <p><a href="https://i.stack.imgur.com/zJBoz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zJBoz.png" alt="enter image description here"></a></p>
  
  <p>The trouble is that this behaviour occurs if I set a padding on the parent and the list items, like this:
  ParenStart &lt;-12.5dp-> ListItem &lt;-5dp-> ListItem &lt;-12.5dp-> ParentEnd</p>
  
  <p><a href="https://i.stack.imgur.com/iQgly.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iQgly.png" alt="enter image description here"></a></p>
  
  <p>And if I do not set padding on the parent and only set padding on the list items I get the following trouble
  ParenStart &lt;-10dp-> ListItem &lt;-20dp-> ListItem &lt;-10dp-> ParentEnd</p>
  
  <p>Restating my goal:
  ParenStart &lt;-10dp-> ListItem &lt;-10dp-> ListItem &lt;-10dp-> ParentEnd 
  And at the same time be able to scroll full width of the parent.</p>