时间:2026-02-14 22:27:52
1、在res文件目录下的drawable-hdpi下创建一个selector类型的XML文件。
代码如图:corners属性是设置圆角
2、在Button的背景属性设置为faltbutton。
运行就能看到效果了。