Trouble with screen scaling on Android

#1

I don’t know how to make it adoptive.
When i run it on PC (All Good):


When i run it on Android Phone (Xiaomi redmi note 7 Pro):

In the editor:

I can extend it, but:

In the editor (Extended):
image

0 Likes

#2

Hi,

You maybe want to look into the Adjust Mode for your background node. Try setting the the Adjust Mode to Stretch.

0 Likes

#3

Where i can set it? Please send a screen or something

0 Likes

#4

Is your background image a gui node or gameobject?

0 Likes

#5

nope, it is sprite at background

0 Likes

#6

You might want to create your background from a gui node that way you can easily scale it to be responsive.

1 Like

#7

ok, th. Will try soon

0 Likes

#8

Just try to add next lines into your AndroidManifest.xml:

1 Like

#9

Ok, will write soon

0 Likes

#10

Make sure you make a copy of your AndroidManifest.xml and paste is somewhere in your project and then edit from the copied manifest.
You will not be able to save any changes when you edit from the builtins’ Android Manifest.xml.

The builtin AndroidManifest.xml will reset to its default state when you relaunch Defold Engine.

Don’t forget to set the new manifest in your game.project

0 Likes

#11

I copued it, but how to attach it to project, or i will be automaticly?

0 Likes

#12

No! You have to set it in the game.project manually. In the game.project Jump to Android and then under Manifest > select the path for your new manifest.

0 Likes

#13

Th, buy i maybe found a problem) Problem on this app from developers.

0 Likes

#14

britzl just look. The problem on debug programm)

0 Likes

#15

If install apk on my phone manualy

0 Likes

#16

I created a new ticket for that Issue-#4295

0 Likes

#17

th

0 Likes