我有一个获取这些输出的代码。我使用 libgdx 框架,自应用程序启动以来似乎调用了两次调整大小。想知道为什么它被调用两次,因为我没有做任何不寻常的事情。下面的类是从实现 Screen 类的 AbstractScreen 扩展而来的。应用程序生命周期链接:http ://code.google.com/p/libgdx/wiki/ApplicationLifeCycle
The tags refer to the Functions being called:
SHOW(): devInfo.glyphWidth=18
SHOW(): devInfo.glyphHeight=27
AbstractScreen.resize: screenScaleX=0.8
AbstractScreen.resize: screenScaleY=0.8
resize(): devInfo.glyphWidth=14
resize(): devInfo.glyphHeight=21
resize(): logoSplashSprite.getWidth=204.8
resize(): logoSplashSprite.getHeight=204.8
AbstractScreen.resize: screenScaleX=0.8
AbstractScreen.resize: screenScaleY=0.8
resize(): devInfo.glyphWidth=11
resize(): devInfo.glyphHeight=16
resize(): logoSplashSprite.getWidth=204.8
resize(): logoSplashSprite.getHeight=204.8
fps 0
fps 65
.
.
.
谢谢苏维克