![](/img/trans.png)
[英]How to change the background stroke color in TextInputLayout in android?
[英]how to change Chip Background and Stroke color in android with opacity
我想用 alpha 更改 com.google.android.material.chip.Chip 背景,但是当我设置时
app:chipBackgroundColor="#6F000000"
这不起作用并且总是有白色背景。 我怎样才能做到这一点?
我在此链接中找到了解决方案。 芯片在它们的背景下有一个白色的表面层,你可以用这个设置透明颜色:
app:chipSurfaceColor="@android:color/transparent"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.