A
A
Andrey Begin2018-07-24 19:15:16
Java
Andrey Begin, 2018-07-24 19:15:16

Full screen application on libGDX (Java) on different mobile devices?

Switched to Java + LibGDX. Created a project, imported it into Android Studio. I set the screen resolution to 800x480 for the desktop, ran it on my computer, checked the test. Stuffed a few buttons into the project (For the test). I collected the APK file and launched the project on the tablet (the resolution is clearly higher than 800x480), respectively, the game only filled the tablet screen by a quarter.
Actually I wanted to ask how to make the application full screen?
Before that, I worked with Flash + Starling Framework, everything was automatically adjusted there. I conducted tests on a computer with a desktop launcher resolution of 800x480, everything was fine on the tablet as well.
I heard about different functions with camera fitting, but I think that there is another way out.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-07-25
@asmailiks

For devices, I think you need to ask for screen sizes and adjust your graphics to fit them. See here: https://github.com/libgdx/libgdx/wiki/Querying-%26...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question