How to draw rectangle frame in android : <p>I want to draw a square shape every time I can use it. The barcode shown is only representative. I want to make a drawing that I can give the dimensions of the square like the picture. how can I do that ? what can i research? I would like to do this by assigning measures in the MainActivity class that I write to a specific class.</p>

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

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