Dynamic Resolution

how to create dynamic resolution which can fit in all screen? in cocos2dx(c++).

Perhaps this will help: https://docs.cocos2d-x.org/cocos2d-x/en/basic_concepts/getting_started.html?h=design%20resolution

there are also many topic already asked on these forums.

cpp-tests has code as well.

i already prefered this and tried it but it is not working in all devices.

What did you do exactly? What is your design resolution? Did you have your art designed around that resolution?

my design resolution is 480,320. and my assets are designed in 720x1280 ratio by designer.

Yup, so change your design resolution to 720 x 1280

will it work with all screen resolutions?

There is another topic talking about this currently too: