Button with round border Android Studio

1

How could I put a Button with round borders in Android Studio?

Thank you.

    
asked by javier guerrero 06.06.2017 в 10:50
source

1 answer

4

<corners
    android:bottomLeftRadius="7dp"
    android:bottomRightRadius="7dp"
    android:radius="0.1dp"
    android:topLeftRadius="7dp"
    android:topRightRadius="7dp" />

<solid android:color="#FFFFFF" />

<stroke
    android:width="1dp"
    android:color="#E8E6E7" />

This would be the shape.xml

And here you add the button

<Button
    android:id="@+id/button1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:background="@drawable/my_shape"
    android:text="Botón" />
    
answered by 06.06.2017 / 10:58
source