Android layout diagonal cut
<p>How can I cut a layout (LinearLayout or RelativeLayout) diagonally with content inside?</p>

<p>The mockup looks like that:</p>

<p><a href="https://i.stack.imgur.com/JSucN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JSucN.png" alt="enter image description here"></a></p>

<p>I tried using diagonal layout libraries like <a href="https://github.com/florent37/DiagonalLayout" rel="nofollow noreferrer">https://github.com/florent37/DiagonalLayout</a> but I cant seem to get this cut on the right of the image and on the left of the second layout with the library or with a custom View.</p>

<p>Any help would be appreciated.</p>