Adaptive Android Resulution

how can i make my app adaptive resolution in any kind of android phone that will fit in any size of screen

like on the attachment i want to make it fit in any size of the screen

You can place the objects using display.contentHeight & display.contentWidth properties. Here is an example

object.x = display.contentWidth \* 0.5 object.y = display.contentHeight \* 0.4

The above 2 lines will place the object horizontally in the middle and vertically at 40% of the total height relative from the top. There are other constants you can use by using Display Properties.

0.5 & 0.4 are percentage values you want the display object to be relative to the content area. This way you objects will be in the place you intended to be when display size changes. If you are not designing a game but other types of application you can try out Adaptive scaling.

With content scaling, you also need the different resolution of sprites so that the images displayed in your app are not blurry. You can use Texture Packer for producing sprite sheets. 

You can place the objects using display.contentHeight & display.contentWidth properties. Here is an example

object.x = display.contentWidth \* 0.5 object.y = display.contentHeight \* 0.4

The above 2 lines will place the object horizontally in the middle and vertically at 40% of the total height relative from the top. There are other constants you can use by using Display Properties.

0.5 & 0.4 are percentage values you want the display object to be relative to the content area. This way you objects will be in the place you intended to be when display size changes. If you are not designing a game but other types of application you can try out Adaptive scaling.

With content scaling, you also need the different resolution of sprites so that the images displayed in your app are not blurry. You can use Texture Packer for producing sprite sheets.