예제 #1
0
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);

    setContentView(R.layout.gamescreen);
    game = (GameScreen) findViewById(R.id.gameview);
    game.setBackgroundDrawable(Theme.getBackground(getAssets()));
    game.setParent(this);
  }
예제 #2
0
 @Override
 protected void onResume() {
   super.onResume();
   game.setBackgroundDrawable(Theme.getBackground(getAssets()));
 }