package your.packabge.namespace; import org.andengine.engine.camera.Camera; import org.andengine.engine.options.EngineOptions; import org.andengine.engine.options.ScreenOrientation; import org.andengine.engine.options.resolutionpolicy.FillResolutionPolicy; import org.andengine.entity.scene.Scene; import org.andengine.entity.scene.background.Background; import org.andengine.ui.activity.SimpleBaseGameActivity; public class AndEngineTutorialActivity extends SimpleBaseGameActivity { private Camera camera; private static final int CAMERA_WIDTH = 720; private static final int CAMERA_HEIGHT = 480; @Override public EngineOptions onCreateEngineOptions() { camera = new Camera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT); EngineOptions engineOptions = new EngineOptions(true, ScreenOrientation.LANDSCAPE_FIXED, new FillResolutionPolicy(), camera); return engineOptions; } @Override protected void onCreateResources() { } @Override protected Scene onCreateScene() { Scene scene = new Scene(); scene.setBackground(new Background(0.09804f, 0.6274f, 0.8784f)); return scene; } }
<linearlayout xmlns:android="http://schemas.android.com/apk/res/android"> android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <textview> android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /> </textview> </linearlayout>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)