I am trying to create a completely round shape.
I tried using the code below using the form. but the problem that I am facing is that when there are two texts in the view, it looks almost round, but as soon as the view has one and three characters in it, it looks oval.
form code
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval"
android:useLevel="true">
<corners android:bottomRightRadius="20dip"
android:bottomLeftRadius="20dip"
android:topRightRadius="20dip"
android:topLeftRadius="20dip"
/>
</shape>

Please check the almost rounded shape where the numbers 2 and 22 are written in the picture. I used the same code for all buttons (mentioned above)

source
share