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.

30th Jul 2019, 10:48 AM
Aman Rajput
Aman Rajput - avatar
1 Réponse
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" />
11th Jan 2021, 6:45 AM
Samiun Nafis
Samiun Nafis - avatar