I recommend using a <vector>
drawable for this.
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:strokeColor="#000"
android:strokeWidth="1"
android:pathData="M1 1h22v22h-22zM1 1l22 22M1 23l22 -22M1 12h22M12 1v22"/>
</vector>
solved Need to draw a shape for android in xml, the design will hold a “X” and some vertical and horizontal line also [closed]