Create drawable from layout
<p>Is there a way to generate a drawable object from a layout?</p>

<p>In fact, I need a cropped part of my initial layout, and my idea is to transform the layout into a drawable object and then to crop drawable.</p>
