Hi B4X community!
Does anyone knows, how to set an image for the created widget to be displayed in widget select page like in attached image? Also, see the B4A widget display. How to set an image for widget?
Thanks in advance.
where: @layout stands for file directory, widgetreceiver_layout is an widget XML file located at layout directory, previewImage is the name of JPG file witch I stored in layout folder. Stored preview image must be set Read Only otherwise compiler might delete it. Also do not write preview image file extension , only use file name as shown in code section. "previewImage" is the name of the jpeg file witch will be displayed in widget preview page.