1
保存 drawable
将 buttonshape.xml 放进 res/drawable/。
2
使用 Button
将 Button XML 粘贴到布局中,并保留生成的 ID。
3
处理点击
复制 Java 或 Kotlin 监听器,填入你的业务逻辑。