How to leave Imagebutton edges rounded?

Asked

Viewed 867 times

1

My XML:

<item>
    <shape>
        <gradient
            android:angle = "270"/>
        <corners
            android:radius = "25dp"/>
        <padding
            android:left="5dp"
            android:top="5dp"
            android:right="5dp"
            android:bottom="5dp" />
    </shape>
</item>

inserir a descrição da imagem aqui

It gets the rectangular image. How do I make the image rounded as the border?

  • How will the button "states" be: pressed, focused etc?. Put all the code xml button.

  • boot states will be false

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.