yunbiaolin / min3d

Automatically exported from code.google.com/p/min3d
0 stars 0 forks source link

Adding a View on RendererActivity #58

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
RelativeLayout rl = new RelativeLayout(this);
CameraPreviewSurfaceView mCameraPreviewSurfaceView = new 
CameraPreviewSurfaceView(this);
TextView tv = new TextView(this);
tv.setText("adsffaewgf");
rl.addView(tv);
rl.addView(_glSurfaceView);
rl.addView(mCameraPreviewSurfaceView);
setContentView(rl);

I use this code inside of onCreateSetContentView method of RendererActivity 
class. What I expect is seeing a TextView in front of other two SurfaceView, 
but I cannot see TextView and it do not give any error. Any explanation on this 
would be great.

Original issue reported on code.google.com by avsar...@gmail.com on 2 Aug 2011 at 2:53

GoogleCodeExporter commented 8 years ago
same problem here, i allready tried to use it as a fragment/view and use it in 
a layout file of another Activity and it doesnt work becouse of the "extends 
RendererActivity". Anyone can help us?

Original comment by jonas.dr...@gmail.com on 29 Jan 2015 at 2:23