如何在小吃栏中自定义动作按钮的样式

问题描述 投票:2回答:2

我正在使用Snackbar提供的Snackbar。我正在寻找一种定制ACTION按钮样式的方法。

Material Components Library

我知道enter image description here与此Snackbar一起使用布局(layout.mtrl_layout_snackbar_include

Button

但是我试图避免使用一些可能会在下一版本中停止工作的解决方法。特别是,我想使用 <Button android:id="@+id/snackbar_action" 自定义形状

作为箭头

我正在使用材料组件库提供的小吃栏。我正在寻找一种自定义“动作”按钮样式的方法。我知道Snackbar使用布局(布局...。

android android-styles material-components android-snackbar material-components-android
2个回答
2
投票

OutlinedButton style的版本为[[1.1.0

© www.soinside.com 2019 - 2024. All rights reserved.