hello. can anyone please point out how can I get a...
# android
d
hello. can anyone please point out how can I get a resource id, that I can use with
R
, just having the resource name (String)?
not kotlin but kotlin colored 5
z
d
hello @zsmb and thank you for you reply. I’ve seen this, but it’s Java. I need it for Kotlin
getResources()
is not available in Kotlin
p
Try
this.resources
where
this
is of type
Context
or a subclass like
Activity