Professional Documents
Culture Documents
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); }