带边框的材料设计按钮 [英] Material design button with border

查看:32
本文介绍了带边框的材料设计按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何制作带有颜色填充的 Material Design 按钮:

style="@style/Widget.AppCompat.Button.Colored"

和无边框透明按钮:

style="@style/Widget.AppCompat.Button.Borderless.Colored"

但是,有没有办法让 Material design 有边框(内部透明)按钮?像下面这样?

解决方案

您也可以使用

您还可以使用 ShapeApperance 自定义角点(需要 1.1.0 版本)