button控件
# **[UI](doc:NghvQiDm)**
### `<button\>`
button控件常用的个性属性:
##### `foreground`
- `?selectableItemBackground`
设置前景为点击可显示波纹样式(边界)
- `?selectableItemBackgroundBorderless`
设置前景为点击可显示波纹样式(无边界)
使用时勿忘前面加“?”
- foreground
```xml
<button foreground="?selectableItemBackgroundBorderless" text="无边界按钮"/>
```
##### `style`
- `Widget.AppCompat.Button.Colored`
带颜色的按钮
- `Widget.AppCompat.Button.Borderless`
无边框按钮
- `Widget.AppCompat.Button.Borderless.Colored `
带颜色的无边框按钮
> 范码
- style
```xml
<button style="Widget.AppCompat.Button.Colored" text="颜色按钮"/>
```