I trying to put together an Android app that will take a picture and process it in some way. I\'d like the layout to be similar to Google Goggles. Meaning, camera preview
If I am not missing something, you cannot just use SurfaceView as is. You need a derived class of your own. I usually create this view programmatically, and give it the full screen. But you can cover parts of it with other views, including buttons:
setContentView(new CameraView());
View mainscreen = getLayoutInflater().inflate(R.layout.mainscreen, null, false);
ViewGroup.LayoutParams generalLayoutParam = new ViewGroup.LayoutParams(
ViewGroup.LayoutParams.FILL_PARENT,
ViewGroup.LayoutParams.FILL_PARENT);
addContentView(mainscreen, generalLayoutParam);