Currently, I am in the process of designing my app's UI using the GUI Builder. I have created a new Form and defined a style as follows:
FinishFlagIcon {
background-image: url(pics/FinishFlag.png);
cn1-background-type: cn1-image-scaled-fit;
cn1-source-dpi: 320;
font-size: 11.9mm;
}
Upon applying this style to a label, it displays correctly within the GUI Builder. https://i.sstatic.net/J8UTw.png
However, when I run the project on the simulator, the icon does not appear anymore. https://i.sstatic.net/0UqaK.png
I also attempted using a Scaled Label with the FinishFlag icon from the res file, which showed up in the GUI Builder but failed to display on the simulator. No error messages were logged indicating any issues with the file.
Please note that all related png files are stored in the res/myCustomTheme.css folder along with their respective subfolders (ranging from low to hd resolution). The src/theme.res file includes the necessary images, per Shai's advice: https://i.sstatic.net/4GMjU.png
How can I ensure the picture appears on the simulator?
Edit: Upon manually coding the UI by adding a labeled component with the specified UIID to the central region of a BorderLayout, the icon did not show unless 3 spaces or more were added to the Label. This behavior strikes me as unusual, is it intentional?
Update September 13th, 2017: Upon building the app and testing it on an actual Android device, the labels now appear. https://i.sstatic.net/qhMer.png
Update September 15th, 2017: To address the issue of components not displaying, following the accepted answer, one must remove the top or bottom constraint of the non-visible component and set it to auto (by clicking on the lock) to allow ample space for the components. After setting the bottom constraint of the progress bar and labels to "auto", the expected result finally appeared on the simulator:
https://i.sstatic.net/31xDA.png
Any assistance would be greatly appreciated,