How to scale image according to different screen resolutions in libgdx
问题 I am using 480*800 image for my libgdx game. It is running absolutely fine on my smartphone but when i try to run it on high end devices or say tab with resolution 800*1280, it just show the image at one corner of the screen for obvious reasons. I am sure it just needs some camera settings to scale up and down according to the different screen resolutions. Please help me or provide any pointer. 回答1: You can use ViewPort as maintained above or use your own solution, like this: public static