How to programmatically set the stroke color of a shape used on a home screen widget
So, I have this rounded_corner_shape.xml
used in ip_properties.xml:
I then want to dynamically set the stroke color from a RemoteViewsService.RemoteViewsFactory implementation, like so:
class WifiPropertyViewsFactory: RemoteViewsService.RemoteViewsFactory{
// other overrides...
override fun getViewAt(position: Int): RemoteViews =
RemoteViews(context.packageName, R.layout.ip_properties)
.apply {...