some days ago I added a new example: XMLLayoutExample, which is using the new LayoutGameActivity class that makes integration of an AndEngine view into an complex layout trivial (Note, placing it into a ScrollView is not supported due to how SurfaceViews work
This is pretty much what needs to be added, compared to the usual BaseGameActivity:
Using java Syntax Highlighting
- @Override
- protected int getLayoutID() {
- return R.layout.xmllayoutexample;
- }
- @Override
- protected int getRenderSurfaceViewID() {
- return R.id.xmllayoutexample_rendersurfaceview;
- }
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
This is what the example looks like on my Nexus:
Please keep in mind that this new 'feature' is pretty young and might be subject to changes
Best Regards,
Nicolas
