I want to draw a rectangle with a hole in it. I am trying to achieve this by using Shape Rectangle.
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<stroke
android:width="50dp"
android:color="@color/red" />
</shape>
I am trying to figure out how can I change stroke width while this rectangle is being drawn so that Rectangle shall have for example: 50 dp stroke width on top and bottom edges but 20 dp on left and right edges.
I really appreciate your help on this.