I want to make the android chip background color to transparent.
From material version higher than 1.1.0,
we need to set app:chipBackgroundColor="@color/transparent"
but also app:chipSurfaceColor="@color/transparent"
Ok, I see. But how can it do by kotlin code?
background color can be set by code below...
chipBackgroundColor = ColorStateList.valueOf(ContextCompat.getColor(context, android.R.color.transparent))
But, I can't find the code that changes its surface color!!
Is there any solution?
chip.chipBackgroundColor = getColorStateList(your color)