更新时间:2023-01-27 20:35:48
我知道已经回答了这个问题,但是我发现最简单的方法是直接使用Html.fromHtml
方法和font
标记
I know this has been answered already but the easiest way I found was directly in the make using the Html.fromHtml
method and a font
tag
Snackbar.make(view,
Html.fromHtml("<font color=\"#ffffff\">Tap to open</font>").show()