I don't know a lot about how to do UI stuff on Android so apologies if this is very basic. I'd like to create a layout where part of the screen is the SurfaceView (?) where orx is rendered, and another part is an Android UI component (a button).
I've had a brief look at OrxActivity.java and get the impression that this is possible (and maybe even easy) but haven't really had much success getting something working yet...
Should I be using id/orxSurfaceView" as an ID in my layout XML or is there some other way I should go about this?
Comments
It's indeed very easy to achieve this.
In your sub OrxActivity class, call setContentView(R.id.your_layout); to create your Activity layout.
OrxActivity will detect that a layout has been inflated and will try to find a SurfaceView with the id orxSurfaceView.
I've just had some time to play around with this. I more or less copied your layout XML and am doing setContentView(...) in my onCreate method but the screen just renders black without any errors in the log.
If I comment out setContentView(...) my application renders just as before (but without the layout of course).
Trying to narrow this down but not sure yet what's wrong. :unsure: