0

Sorry for my bad english.

I develop a game in which will be implemented autoOrientation, but when i rotate device and stage orientation is changed, then reinitialization process take too long time (because i use GPU to render game content), therefore i decided to disable autoOrientation and manually calculate the orientation of the device from accelerometer data, and then rotate the main game sprite accordingly to calculated orientation...and it works, but SystemBar remains static in its first position when game was launched. The question is how to set SystemBar position in Android, something like this

SetBarPosition(TOP / BOTTOM / RIGHT / LEFT);

4

1 回答 1

0

在这种情况下,您应该自己处理方向更改,而不是禁用它。在 android 上,您应该实现 onConfigurationChanged() 方法并添加到您处理方向更改的清单中。

于 2013-09-06T12:49:09.490 回答