Android: How do I resize the GLSurfaceView so I can add buttons around the outside?

痞子三分冷 提交于 2019-12-12 09:18:43

问题


I have a 3d model viewer, but I want to modify it, so hear are some questions/issues:

(OpenGL ES 2.0)

1. Is it possible to change the GLSurfaceView dimensions (height and width) to something like 600 x 800 and centered on the device (tablet) screen? I want to use the unused area to line buttons around the outside.

2. Is it possible to resize glSurfaceView in XML?

3. Is there a way to set an XML layout on top of the screen?

4. Is it possible to set a background color under the rendering so that it's not all black?

For reference as to what I'm trying to achieve, search "STL Viewer" on the android market.

来源:https://stackoverflow.com/questions/8772783/android-how-do-i-resize-the-glsurfaceview-so-i-can-add-buttons-around-the-outsi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!