Is it possible to create drawable from xml like on the picture? The first rectangle contains a second rectangle.
If yes, please explain to me how.
If you want simple rectangles you could use a LayerList with two shapes as content: