Example code of setting background and fillet for buttons in Android
•
Android
preface
Recently, when making buttons, you have to define rounded corners while setting a picture for the button as the background. The simplest way is to cut a rounded corner picture directly as the button, but what if not? See the code:
Let's look at the renderings
1、 First create a fillet shape file:
2、 Create a list file:
3、 Direct reference:
summary
The above is how to set the background and fillet for the button in Android. Have you learned it? I hope the content of this article can help you learn or use Android. If you have any questions, you can leave a message.
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码