You are on page 1of 1

package app.exercise; import ryulib.game.GamePlatform; import android.app.Activity; import android.os.Bundle; import android.view.ViewGroup; import android.widget.

LinearLayout; public class Main extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); GamePlatform _GamePlatform = new GamePlatform(this); _GamePlatform.setLayoutParams( new LinearLayout.LayoutParams( ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT, 0.0f ) ); setContentView(_GamePlatform); _GamePlatform.AddControl(_Box); } private GamePlatform _GamePlatform = null; private Box _Box = new Box(null); }

You might also like