C csgoh Member Licensed User Longtime User Jan 8, 2012 #1 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. 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! Code: Copy 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:
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. 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! Code: Copy 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:
Erel B4X founder Staff member Licensed User Longtime User Jan 8, 2012 #2 Change the name of your image to arrow_left_icon. Hyphens are restricted in resource image names. Upvote 0
C csgoh Member Licensed User Longtime User Jan 9, 2012 #3 Thanks. I works by changing '-' to '_'. But I don't understand why it works for image file in non-widget screen. Upvote 0
Thanks. I works by changing '-' to '_'. But I don't understand why it works for image file in non-widget screen.
Erel B4X founder Staff member Licensed User Longtime User Jan 9, 2012 #4 Non-widget screens are built in a different way. Upvote 0