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.
ParenStart <-10dp-> ListItem <-10dp-> ListItem <-10dp-> ParentEnd
And at the same time be able to scroll full width of the screen (parent).
The trouble is that this behaviour occurs if I set a padding on the parent and the list items, like this: ParenStart <-12.5dp-> ListItem <-5dp-> ListItem <-12.5dp-> ParentEnd
And if I do not set padding on the parent and only set padding on the list items I get the following trouble ParenStart <-10dp-> ListItem <-20dp-> ListItem <-10dp-> ParentEnd
Restating my goal: ParenStart <-10dp-> ListItem <-10dp-> ListItem <-10dp-> ParentEnd And at the same time be able to scroll full width of the parent.