1

I know there are already questions like this but i cannot find the answer for my uestion. Please Help?

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/button"
      android:state_pressed="true" />
<item android:drawable="@drawable/button"
      android:state_focused="true" />
<item android:drawable="@drawable/button" />
</selector>

i already set the background but i dont know how to make the edges round.

1 Answers1

1

Create your own custom button like this

<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
    <corners android:radius="3dp" />
    <stroke android:width="5px" android:color="#1a1a1a" />
</shape>

Also check this on Developers Site

Jitender Dev
  • 6,907
  • 2
  • 24
  • 35