I am trying to create a shape to be used for my imagebuttons in my android project that would essentially have half circles for the left and right sides.
i thought i could just use a shape XML with a radius. but that just rounds the corners where i need the whole left and right sides to be half circles like the image below.
my current xml for the shape looks like this:
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle"
android:color="@color/white">
<corners
android:radius="60dip"
/>
<stroke
android:width="0dp"
android:color="#000000" />
<solid
android:color="@color/white" />
</shape>
but i am trying to get this effect :