我无法将我的应用程序全屏显示在 Android Lollipop 中,我的代码:
public class AoA extends ActionBarActivity {
protected void oncreate(Bundle savedInstanceState) {
super.onCreate(SavedInstanceState);
setupParameters();
}
public void setupParameters() {
GameParameterSingleton.ORIENTATION = GameParameterSingleton.PORTRAIT;
GameParameterSingleton.SCREEN_HEIGHT= getWindowManager().getDefaultDisplay().getHeight();
GameParameterSingleton.SCREEN_WIDTH = getWindowManager().getDefaultDisplay().getWidth();
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
requestWindowFeature(Window.FEATURE_NO_TITLE);
}
}
该应用程序在我不使用全屏时有效,在我离开全屏时有人可以帮助我吗?当我取应用程序的标题时?