Auto adjust in Android devices

Greetings,

In my game I would like to use full screen of the Android device, no matter what the phone’s resolution is. It is ok to stretch the hole canvas (and the inner nodes) if necessary. Is it possible?

Searching for some way to do this I found the setFrameSize() method, which is not supported anymore. Also found a very brief information about the camera using perspectives, but still did not help me much.

Maybe it is something simple and I’m just blind.

Any help would be appreciated. Thanks.

(I’m using Cocos Creator 2.1.0, targeting API 28)

this document will be helpful:
https://docs.cocos2d-x.org/creator/manual/en/ui/multi-resolution.html
and this demo:

use widget and canvas to auto adjust the size for Muti-resolution