How to make background image fill the ui::layout

I would like to resize an image to fill a layout. According to this post: (SOLVED)Background image is not covering full screen on android device in coco2dx v3.3 you must scale the image. But from what I can tell the layout class does not have a method to access the background image. So I would have to load the image a second time and then scale it and then add it to the layout. The layout also has a method for getting the background texture size but not setting.

Is there a more direct way to edit the background image size?

Thanks!

Now I think the ui::Layout class doesn’t provide a direct way to access the background image, it should be added in the future release.

And I think all the inner renderer should be available to the developers for customization.

Thanks for reporting this issue.