Rounded Button in Android
问题 I want to create rounded buttons in an Android program. I have looked at How to create EditText with rounded corners? What I want to achieve is: Rounded Edge Buttons Change Button background/appearance on different states (Like Onclick, Focus) Use my own PNG for the background and not create a shape. 回答1: You can do a rounded corner button without resorting to an ImageView. A background selector resource, button_background.xml : <?xml version="1.0" encoding="utf-8" ?> <selector xmlns:android=