Unable to compile widget screen with ImageView

csgoh

Member
Licensed User
Longtime User
I having problem compiling widget service. In my widget screen/layout, I have an ImageView which the "Image File" property assigned to "arrow-left-icon.png". Please see attached designer screen. The file has been added to designer.

DesignerScreen.jpg

When I compile the service, I am having this compiler message. I tried replacing it with different PNG files, but the result is still the same!

B4X:
Compiling code.                         Error
Error compiling program.
Error description: Invalid image file name: arrow-left-icon
Occurred on line: 11
thisRemoteView = ConfigureHomeWidget("WidgetScreen", "thisRemoteView", 0, "My little Widget", True)
Word: )

I never have any problem adding image file to image viewer in non-widget type of app. But I am trying out widget today and I have a blocker!

Any help is much appreciated!

:sign0104::sign0085::sign0144::BangHead:
 

csgoh

Member
Licensed User
Longtime User
Thanks. I works by changing '-' to '_'. But I don't understand why it works for image file in non-widget screen.
 
Upvote 0
Top