Closed swkimme closed 9 years ago
I know there's implicit conversion for r2Color,
@inline def r2Color : Int = context.getResources.getColor(id)
but I'm afraid it's not working well because it's Int -> Int conversion. Any ideas?
The trait ResourceConversion is intended to be used in this form:
ResourceConversion
button.backgroundColor = R.color.my_color.r2Color
WOW, SO COOL! Thanks!
I know there's implicit conversion for r2Color,
@inline def r2Color : Int = context.getResources.getColor(id)
but I'm afraid it's not working well because it's Int -> Int conversion. Any ideas?