Shubham Singh

04/13/2023, 3:17 AM
I want to use a custom thumbnail for my Android Studio plugin but none of the following code seems to be working: Approach #1 - Not working
thumb { File("resources/thumb").resolve("pluginThumbnail.png") }
Approach #2 - Not working
thumb = { Thumb { findResource(this.javaClass, File("/thumb/pluginThumbnail.png")) } }
Whereas Approach #1 works for images relative to
i.e. only the ones that come bundled with the Android Studio plugin. I want to ask if there's a way to use custom thumbnails in our custom Android Studio plugins?