I have the following drawable being displayed within a rectangular togglebutton:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/cerulean_blue"/>
<stroke android:color="@android:color/transparent"/>
<corners
android:radius="@dimen/number_selection_rounding_radius"/>
</shape>
</item>
<item android:left="10dp" android:right="10dp" android:top="5dp" android:bottom="5dp">
<shape android:shape="oval">
<solid android:color="@color/light_background"/>
<stroke android:color="@android:color/transparent"/>
</shape>
</item>
</layer-list>
This produces an oval as the inner shape. I would like to make it a circle regardless of the shape of the view. I have tried specifying various values for the size element within the shape. I understand this should affect the scaling but it has absolutely no effect regarless of the values used.
Is it possible to maintain a perfect circle in this case, or do I need to do this programmatically?