[Chip] Transparent background not works.
See original GitHub issueHello! I faced with issue, I can’t make chip view background transparent.
<com.google.android.material.chip.Chip style="@style/R12.White" android:layout_width="wrap_content" android:layout_height="wrap_content" app:chipBackgroundColor="@color/red" app:chipIcon="@drawable/ic_gallery" app:chipStrokeColor="@color/red" app:chipStrokeWidth="2dp" app:iconStartPadding="6dp" app:textEndPadding="6dp" tools:text="23" />
If I set red text - everything works.
but if I set app:chipBackgroundColor="@color/transparent"
I have this
I use 1.1.0-alpha06 version
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Android chip transparent background not working when ...
Any help. Hello, chips have a surface layer underneath their background (meaning they are opaque) of value colorSurface, which is by default ...
Read more >How to make chip background transparent in android?
You can set it programmatically through the setChipBackgroundColorResource API: copyLinkChip.setChipBackgroundColorResource(android.R.color.
Read more >Change Composition Background Color in After Effects
Learn why changing the Background Color option in the Composition Settings does not work for exporting video. Also learn the correct way to ......
Read more >Transparent images PNG files in Keynote - Apple Community
I tried to drag a PNG image file into my KeyNote presentation but the white background still there and not transparent. I thought...
Read more >Transparent background - HTML/CSS to Image API
Works with PNG's only ... Transparency is only supported by the PNG file format. By default, all images are rendered as PNG's. If...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello, chips have a surface layer underneath their background (meaning they are opaque) of value colorSurface, which is by default white in the MaterialComponents theme. So when you set the background color to transparent it reveals that white surface layer. Chips also have a chipSurfaceColor attribute that you can set to change that surface color.
chipSurfaceColor is only exposed through a xml property, can you also add one for the Java/Kotlin?