0
How to create or from where circle button library for android studio is available.. Anyone?
I making a calculator app in android studio but when I am just try to draw circle button and export it to android studio for button background then still it shows blocks like square, so I need library for this.
1 Odpowiedź
0
Use <shape /> to add radius to your button.
Create 'bg.xml' inside drawable:
<shape
xmlns:android="http://schemas.android.com/res/android">
<corners
android:radius="400dp"/>
</shape>
Then, add background attribute to your view:
<Button
...
android:background="@drawable/bg.xml" />