I found the solution here 
(https://stackoverflow.com/questions/42787875/how-can-i-include-resources-in-native-ios-codename-one)
 
by placing the image in src.

On Wednesday, June 7, 2017 at 3:22:43 PM UTC-4, Mickey Ng wrote:
>
> Thanks this works. I was able to set blank view from using code in 
> buildHint and restore the original UI on start() by calling my native code
>
> I'm now trying to set an UIImage instead of a blank view, but it doesn't 
> seem to be picking the resource. How would I specify a png resource that 
> I've added in theme.res from native code? This is done via the build hint 
> so not sure if this adds extra complication.
>
> On Wednesday, June 7, 2017 at 12:48:16 AM UTC-4, Shai Almog wrote:
>>
>> start is invoked by will enter foreground so you can probably call your 
>> native code there if it's applicable.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/30ac8e7b-4e32-48e8-bd18-a89785c48972%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to