Is there any way to set a drawable xml asset in a chip programmatically?
Just playing around with chips, not forced to use them actually. I can easily swap, but i was wondering if that's possible or not.
In my project i have a drawable folder which looks like so
This folder (maybe is standard, maybe is not, dunno: I'm pretty new to Android Studio and that folder got auto generated) has a bunch of xmls in it, which I managed to use in views.
Now, I was playing around with chips in a fragment, and I am failing on finding some way to set the chip checked icon from code (which is a tick by default). I was trying to find some way to go like Chip.setIcon(R.drawables.my_xml_asset_name)
.
I know I can set that via xml, so please don't suggest that.
API version: Level 34 (Upside Down Cake)